Skip to main content Skip to footer

Generate a Distribution Key

Here are resources regarding the generating of distribution keys for select MESCIUS products.

SpreadJS and Wijmo products include distribution licensing, which means apps require a unique key to be validated at runtime. The process is quick and requires minimal memory.

How to License Your App

Copy the generated distribution key and insert it into the beginning of your application class constructor.  This will vary by product; see below for details.


SpreadJS Distribution Licensing

With every developer bundle license, you'll receive one distribution license for one hostname (domain), which entitles you to generate a distribution key that will be used in the script code. To deploy to additional hostnames, you can buy packages of additional, renewable distribution licenses by contacting sales, and generate distribution keys for those hostnames. Licenses must be renewed annually, and keys will need to be updated if you deploy a new version of SpreadJS.

The license for SpreadJS is set via script code. This is done by setting the GC.Spread.Sheets.LicenseKey before creating a new Workbook() instance:

Read the blog post on licensing

Watch the video:

Get your SpreadJS distribution key(s)


Wijmo Distribution Licensing

With every developer license, you'll receive an unlimited, perpetual distribution license, which entitles you to generate distribution keys that will be used in the script code. Wijmo license holders can generate distribution keys for an unlimited number of hostnames (domains). While the licenses never expire, keys will need to be updated if you deploy a new version of Wijmo. Without a key, you'll see a popup in your deployed app.

Watch the video:

To use Wijmo in production, follow these simple steps.

  1. Purchase a copy of Wijmo, based on your needs. If you buy from a third party, you'll need to register your serial number in My Licenses.
  2. Get your distribution key in My Licenses. Copy the key.
  3. Apply the distribution key to your application using Wijmo's setLicenseKey method.

    Example: wijmo.setLicenseKey(key);

Refresh your application, and you should see the licensing popup and evaluation watermark disappear.

Read more about Wijmo licensing.

Get your Wijmo distribution key(s)