Can't find what you're looking for?

Contact us or post in our forums and we'll help you find an answer.

How to set the Excel IO LicenseKey in React

Background:

In order to get rid of the licensing screen when working with Spread.Sheets a valid license needs to be added.

Steps to Complete:

1. Import the namespaces

2. Set the LicenseKey namespace

Getting Started:

Import the namespaces

import GC from '@grapecity/spread-sheets';
import ExcelIO from '@grapecity/spread-excelio';

Set the LicenseKey property for both namespaces

var SpreadJSKey = "xxx";
GC.Spread.Sheets.LicenseKey = SpreadJSKey;
ExcelIO.LicenseKey = SpreadJSKey;