Description
Sets or returns the 23-character license key that enables ExcelWriter for the current instance.C#
public System.String LicenseKey{ get ; set ; } |
vb.net
Public Property LicenseKey() As String |
Remarks
This key does not persist once the code completes execution. If this property is set, ExcelWriter will use this key and ignore any keys in the registry.Examples
C#
//--- Get LicenseKey string key = xlt.LicenseKey; //--- Set LicenseKey ExcelTemplate xlt = new ExcelTemplate(); xlt.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX" ; xlt.Open( "Template.xlsx" ); |
vb.net
'--- Get LicenseKey Dim key As String = xlt.LicenseKey '--- Set LicenseKey Dim xlt As New ExcelTemplate() xlt.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX" xlt.Open( "Template.xlsx" ) |