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

Opens the WordWriter template specified by the templateFileName parameter.

Signature
C#
C#
 public void Open(System.String templateFileName)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Sub Open(ByVal templateFileName As String)
{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#}
Parameters
Param
templateFileName
templateFileName

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

Exceptions
Exception
ArgumentNullException
ArgumentNullException

Exception
FileNotFoundException
FileNotFoundException

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.

Example
Code Block
csharp
csharp
titleC#

oWW.Open(@"c:\templates\StringTemplate.doc"); 
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

oWW.Open("c:\templates\StringTemplate.doc")
{code} {example}