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 PowerPointWriter for the current instance. This key is stored in the registry and contains information including product name and version number.

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 = pptTemplate.LicenseKey;

          '//--- Set LicenseKey
          PowerPointTemplate pptTemplate = new PowerPointTemplate();
          pptTemplate.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX";
          pptTemplate.Open("Template.pptx");
        
Code Block
vb.net
vb.net
titlevb.net
           '--- Get LicenseKey
          Dim key As String = pptTemplate.LicenseKey

          '--- Set LicenseKey
          Dim pptTemplate As New PowerPointTemplate()
          pptTemplate.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX"
          pptTemplate.Open("Template.pptx")