Template.OpenAsDocument Method

Opens the specified template as a document and returns a Document object.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function OpenAsDocument As Document
'Usage
Dim instance As Template
Dim returnValue As Document

returnValue = instance.OpenAsDocument()
Document OpenAsDocument()

Return Value

Type: Microsoft.Office.Interop.Word.Document

Remarks

Opening a template as a document allows the user to edit the contents of the template. This may be necessary if a property or method (the Styles property, for example) isn't available from the Template object.

See Also

Reference

Template Interface

Template Members

Microsoft.Office.Interop.Word Namespace