Skip to main content Skip to footer

How to set the ExcelIO LicenseKey in React

NOTE: When using PureJS environment, ExcelIO is not required to be licensed separately.

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;

Tags:

Mackenzie Albitz