Message-ID: <1094220480.9127.1711676781868.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9126_747410369.1711676781868" ------=_Part_9126_747410369.1711676781868 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordTemplate.Version

WordTemplate.Version

Description

=20

Returns the exact version of WordWriter.

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

Remarks

=20

The format of the version string returned is:

=20
=20

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

Place Holder

Description

ProductName

A product name like "SoftArtisans.WordW= riter." Note: the product name may be different depending on what lice= nse 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.

=20

Examples

=20
C#
=20

          WordTemplate WordTempl =3D new WordTemplate();
          string Version =3D WordTempl.Version;
          string[] NamesArr =3D {"WordWriterVersion", "DateT=
ime"};
          object[] ValuesArr =3D {Version, DateTime.Now};
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"));
          WordTempl.SetDataSource(ValuesArr, NamesArr);
          WordTempl.Process();
          WordTempl.Save(Page.Response, "BasicGenerated.doc", fal=
se);
        
=20
=20
vb.net
=20

          Dim WordTempl As New WordTemplate()
          Dim Version As String =3D WordTempl.Version
          Dim NamesArr As String() =3D {"WordWriterVersion", &quo=
t;DateTime"}
          Dim ValuesArr As Object() =3D {Version, DateTime.Now}
          WordTempl.Open(Page.MapPath("./BasicTemplate.doc"))
          WordTempl.SetDataSource(ValuesArr, NamesArr)
          WordTempl.Process()
          WordTempl.Save(Page.Response, "BasicGenerated.doc", Fal=
se)
        
=20
------=_Part_9126_747410369.1711676781868--