Opens a WordWriter template from a . A WordWriter template is a file created in Microsoft Word that contains merge fields.

 public void Open(System.IO.Stream templateStream)
Public Sub Open(ByVal templateStream As System.IO.Stream)

A System.IO.Stream object, or a class derived from System.IO.Stream (for example, System.IO.FileStream).

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.

//--- FileStream and FileMode are in System.IO
FileStream oFileStream = new FileStream(@"c:\templates\StringTemplate.doc",
'--- FileStream and FileMode are in System.IO
Dim oFileStream As New FileStream("c:\templates\StringTemplate.doc", _
    FileMode.Open, FileAccess.Read)