The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Template Interface 

Represents a document template.

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

Public Class emplateImplementation
	Implements Template
End Class
Dim emplateImplementation1 As New emplateImplementation()

public interface Template
public interface Template
public interface Template

The Template object is a member of the Templates collection. The Templates collection includes all the available Template objects.

Use Templates(index), where index is the template name or the index number, to return a single Template object. The index number represents the position of the template in the Templates collection.

The Add method isn't available for the Templates collection. Instead, you can add a template to the Templates collection by doing any of the following:

  • Using the Open method with the Documents collection to open a document based on a template or a template

  • Using the Add method with the Documents collection to open a new document based on a template

  • Using the Add method with the AddIns collection to load a global template

  • Using the AttachedTemplate property with the Document object to attach a template to a document

Use the NormalTemplate property to return a template object that refers to the Normal template. Use the AttachedTemplate property to return the template attached to the specified document.

Use the DefaultFilePath property to return or set the location of user or workgroup templates (that is, the folder where you want to store these templates).

Development Platforms

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

Target Platforms

Community Additions

© 2014 Microsoft