Wiki Markup |
---|
{description} {excerpt}Returns the exact version of WordWriter.{excerpt} {signature:C#} public System.String Version{ get; } {signature}{signature:vb.net} Public ReadOnly Property Version() As String {signature} {remarks}The format of the version string returned is: {code} SoftArtisans.ProductName Major.Minor.Patch.Build (mmddyyyy-hhmmss-buildMachineId) {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} |
Page History
Overview
Content Tools