Installing SpreadJS in Angular Application

Posted by: smallampalli on 12 May 2020, 1:01 pm EST

  • Posted 12 May 2020, 1:01 pm EST

    I have purchased SpreadJS recently and have got the license keys. So how do I add the license keys to my code. Currently I just installed spreadjs within Angular application and using it. I did not find any place to enter license key information. So is it required for me to add license key anywhere within our code? Please suggest.

    I see below post that says how to add client widget to a browser in javascript way.

    https://www.grapecity.com/spreadjs/docs/v13/online/addcontrol.html

    I am looking to do this using in Angular.

  • Posted 13 May 2020, 8:58 am EST

    Hi,

    You may refer to the following doc for staring with angular applications:

    https://www.grapecity.com/spreadjs/docs/v13/online/angular.html?highlight=angular%2C

    For the prod mode please add the following line of code in tsconfig.app.json file

    "include": [
      "src/**/*.ts",
      "node_modules/@grapecity/spread-sheets-angular/dist/gc.spread.sheets.angular.ts"
    ]
    

    For adding the key please add following code before initializing any spread component. A good candidate would be main.ts file:

    import * as GC from "@grapecity/spread-sheets";
    GC.Spread.Sheets.LicenseKey = your Key;
    

    Regards

  • Posted 13 May 2020, 4:12 pm EST

    I need to add Distribution key that create right?

  • Posted 14 May 2020, 12:31 am EST

    Yes, you are right. You would need a distribution key.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels