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
Description

Excerpt

Returns the exact version of WordWriter.

Signature
C#
C#
 public System.String Version{ get; }
Signature
vb.net
vb.net
Public ReadOnly Property Version() As String
Remarks

The format of the version string returned is:

Code Block

            SoftArtisans.ProductName Major.Minor.Patch.Build
            (mmddyyyy-hhmmss-buildMachineId)
          

Place Holder

Description

ProductName

A product name like "SoftArtisans.WordWriter." Note: the product name may be different depending on what license key is in effect.

Major

Major release number.

Minor

Minor release number.

Patch

Patch or bug fix number.

Build

Build number.

mmddyyyy

Date the build was compiled.

hhmmss

Time the build was compiled.

buildMachineId

Unique computer ID for the computer on which this product was compiled.

Example
Code Block
csharp
csharp
titleC#

          WordTemplate WordTempl = new WordTemplate();
          string Version = WordTempl.Version;
          string[] NamesArr = {"WordWriterVersion", "DateTime"};
          object[] ValuesArr = {Version, DateTime.Now};
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"));
          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()
          Dim Version As String = WordTempl.Version
          Dim NamesArr As String() = {"WordWriterVersion", "DateTime"}
          Dim ValuesArr As Object() = {Version, DateTime.Now}
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"))
          WordTempl.SetDataSource(ValuesArr, NamesArr)
          WordTempl.Process()
          WordTempl.Save(Page.Response, "BasicGenerated.doc", False)