Takes a WordTemplate object representing a template Word file, and opens the file as a Document object.

 public Document Open(WordTemplate wwt)
Public Function Open(ByVal wwt As WordTemplate) As Document

A WordTemplate object representing a template Word file.

The Word file that was passed from WordTemplate to WordApplication.

Thrown if an error occurs while opening the template.

Though the WordTemplate object currently supports Office Open XML (Word 2007) format files, WordApplication.Open() does not yet support them.


          WordTemplate wTempl = new WordTemplate();
          ...
          wTempl.Process();
          WordApplication wApp = new WordApplication();
          Document doc = wApp.Open(wTempl);
          ...
        

          Dim wTempl As New WordTemplate()
          ...
          wTempl.Process()
          Dim wApp As New WordApplication()
          Dim doc As Document = wApp.Open(wTempl)