Share via


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)

Usage

Dim returnValue As Document
Dim template1 As Template
returnValue = template1.OpenAsDocument()

Syntax

Function OpenAsDocument() As Document
Document OpenAsDocument();
public: Document^ OpenAsDocument();
public Document OpenAsDocument();
function OpenAsDocument() : 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Template Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Template Members