Background:
This article shows how to set the license key to our Javascript spreadsheet API, SpreadJS.
Steps to Complete:
-
Include the SpreadJS’s release script files
-
Set SpreadSheet’s LicenseKey
Getting Started:
Step 1: Include the SpreadJS’s release script files
Reference the SpreadJS release scripts within your project:
<script src="gc.spread.sheets.all.x.x.x.min.js" type="application/javascript"></script>
Step 2: Set the SpreadSheet’s LicenseKey
Set the SpreadJS LicenseKey before the workbook is created, like so:
GC.Spread.Sheets.LicenseKey = "xxx";
window.onload = function () {
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var activeSheet = spread.getActiveSheet();
}
See our documentation here as an additional reference.
Tags:
Mackenzie Albitz