[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.SetLicenseKey

SetLicenseKey Method

SetLicenseKey(string)

Sets the license key of Documents for Excel.

Declaration
public static void SetLicenseKey(string key)
Public Shared Sub SetLicenseKey(key As String)
Parameters
Type Name Description
string key

The license key to apply. Must not be null or an empty string.

Examples
string key = "your license key";
Workbook.SetLicenseKey(key);
Exceptions
Type Condition
ArgumentException

Thrown when key is null, an empty string, or not a valid license key.