Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns the 23-character license key that enables ExcelWriter for the current instance.

Signature
C#
C#
  public System.String LicenseKey{ get; set; }
Signature
vb.net
vb.net

Public Property LicenseKey() As String

...

Example
Code Block
csharp
csharp
titleC#


          //--- Get LicenseKey
          string key = xlt.LicenseKey;

          '//--- Set LicenseKey
          ExcelTemplate xlt = new ExcelTemplate();
          xlt.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX";
          xlt.Open("Template.xlsx");
        
Code Block
vb.net
vb.net
titlevb.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")