GemBox.Spreadsheet

SpreadsheetInfo.SetLicense Method 

Call this method from your application to set GemBox.Spreadsheet Professional serial key. (Professional version only)

public static void SetLicense(
   string serialKey
);

Parameters

serialKey
Serial key.

Remarks

This method is present only in Professional version.

You should call this method before using any other class from GemBox.Spreadsheet Professional library. Key can only be set once (if you try second key, exception will be thrown). The best place to call this method is from static constructor of your application's main class.

Valid serial key has four groups of four alphanumeric characters, separated with dashes (for example: "ABC1-A2BC-3ABC-AB4C").

See Also

SpreadsheetInfo Class | GemBox.Spreadsheet Namespace