Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

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

Document OpenAsDocument();
public Document OpenAsDocument();
function OpenAsDocument() : Document;

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.

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

Development Platforms

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

Target Platforms