How to set the SpreadSheets LicenseKey


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:,SpreadJS,-Use%20the%20following

Mackenzie Albitz