Distribution License Key - Angular 8

Posted by: charlie on 31 January 2020, 7:30 pm EST

  • Posted 31 January 2020, 7:30 pm EST

    What is the proper way to initialize GC.Spread.Sheets.LicenseKey in an Angular 8 environment? For a specific page component, such as:

        
    async workbookInit(args: any) {
            this.ccrWorkbook = args.spread;
    
            if (this.ccrWorkbook) {
                this.ccrWorkbook.fromJSON(ccrJsonData, {});
            }.....
    
    
  • Posted 3 February 2020, 2:09 am EST

    Hi Charlie,

    According to our licensing model, SJS can’t be licensed individually for a particular component. We need to add the license key on the whole spread-sheets module. So the best place would be in your main.ts file or root module file(app.module.ts, if the project is created using the Angular CLI). Add the following lines in your main.ts or app.module.ts file:

    import * as GC from '@grapecity/spread-sheets';
    GC.Spread.Sheets.LicenseKey = 'your_license_key';
    

    Regards

    Sharad

Need extra support?

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

Learn More

Forum Channels