Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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.

Example
Code Block
csharp
csharp
titleC#

          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 Block
vb.net
vb.net
titlevb.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)