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 SpreadSheets LicenseKey

Background:

This article shows how to set the license key to our Javascript spreadsheet API, SpreadJS.

Steps to Complete:

  1. Include the SpreadJS’s release script files

  2. 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: https://www.grapecity.com/spreadjs/docs/v14/online/trial_SpreadJS.html#:~:text=sales%40grapecity.com.-,SpreadJS,-Use%20the%20following