Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets or returns the registered 23-character license key that enables WordWriter.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns the registered 23\-character license key that enables WordWriter.{excerpt}
{signature:C#}
 public System.String LicenseKey{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property LicenseKey() As String
Remarks

The key contains information about WordWriter, including product name, platform, and version. Only the 23-character key is stored in the registry. To determine which licensed version is currently installed on the server, run LicenseManager.exe (in OfficeWriter\WordWriter) and enter the license key retrieved by the LicenseKey property.

{signature}
{remarks}The key contains information about WordWriter, including product name, platform, and version. Only the 23\-character key is stored in the registry. To determine which licensed version is currently installed on the server, run LicenseManager.exe \(in OfficeWriter\WordWriter\) and enter the license key retrieved by the [LicenseKey|WordTemplate.LicenseKey] property.

{remarks}
{example}{code:csharp|title=C#}

          WordTemplate WordTempl = new WordTemplate();
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"));
          string key = WordTempl.LicenseKey;
          string[] NamesArr = {"LicenseKey", "DateTime"};
          object[] ValuesArr = {key, DateTime.Now};
          WordTempl.SetDataSource(ValuesArr, NamesArr);
          WordTempl.Process();
          WordTempl.Save(Page.Response, "BasicGenerated.doc", false);
        
{code}
{code:vb.net
|title=vb.net
}

          Dim WordTempl As New WordTemplate()
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"))
          Dim key As String = WordTempl.LicenseKey
          Dim NamesArr As String() = {"LicenseKey", "DateTime"}
          Dim ValuesArr As Object() = {key, DateTime.Now}
          WordTempl.SetDataSource(ValuesArr, NamesArr)
          WordTempl.Process()
          WordTempl.Save(Page.Response, "BasicGenerated.doc", False)
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle