Page tree

Versions Compared

Key

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

Excerpt

Returns the exact version of WordWriter.

{signature}
{remarks}The format of the version string returned is:
          {code}

            SoftArtisans.ProductName Major.Minor.Patch.Build
            (mmddyyyy-hhmmss-buildMachineId)
          
A product name like
{code}
|| 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. |


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

          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}
{code:vb.net
|title=vb.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)
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns the exact version of WordWriter.{excerpt}
{signature:C#}
 public System.String Version{ get; }
Signature
{signature}{signature:vb.net
vb.net
}
Public ReadOnly Property Version() As String
Remarks

The format of the version string returned is:

Code Block

Place Holder

Description

ProductName

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
csharpcsharp
titleC#
Code Block
vb.nettitle