Export (0) Print
Expand All

_Application.CreateItemFromTemplate method

Creates a new Microsoft Outlook item from an Outlook template (.oft) and returns the new item.

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

[DispIdAttribute()]
Object CreateItemFromTemplate(
	string TemplatePath,
	Object InFolder
)

Parameters

TemplatePath
Type: System.String

The path and file name of the Outlook template for the new item.

InFolder
Type: System.Object

The folder in which the item is to be created. If this argument is omitted, the default folder for the item type will be used.

Return value

Type: System.Object
An Object value that represents the new Microsoft Outlook item.

New items will always open in compose mode, as opposed to read mode, regardless of the mode in which the items were saved to disk.

Show:
© 2014 Microsoft