Page tree

Versions Compared

Key

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

Excerpt

Opens the WordWriter template specified by the templateFileName parameter.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Opens the WordWriter template specified by the {{templateFileName}} parameter.{excerpt}
{signature:C#}
 public void Open(System.String templateFileName)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub Open(ByVal templateFileName As String)
Parameters

...

The complete path and file name of the template Word file.

Exceptions

...

Remarks

A WordWriter template is a file created in Microsoft Word that contains merge fields. WordWriter supports Microsoft Word 97, 2000, 2002 (XP), 2003, and 2007. Do not use Open to open files created in earlier versions of Microsoft Word.

{signature}
{parameters}
{param:templateFileName}The complete path and file name of the template Word file.{param}
{exceptions}
{exception:ArgumentNullException}{exception}
{exception:FileNotFoundException}{exception}
{remarks}A WordWriter template is a file created in Microsoft Word that contains merge fields. WordWriter supports Microsoft Word 97, 2000, 2002 \(XP\), 2003, and 2007. Do not use [Open|WordTemplate.Open] to open files created in earlier versions of Microsoft Word.

{remarks}
{example}{code:csharp|title=C#}
oWW.Open(@"c:\templates\StringTemplate.doc"); 
{code}
{code:vb.net
|title=vb.net
}
oWW.Open("c:\templates\StringTemplate.doc"){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle