MailMerge.MailFormat Property

Returns a WdMailMergeMailFormat constant that represents the format to use when the mail merge destination is an e-mail message.

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

Syntax

'Declaration
Property MailFormat As WdMailMergeMailFormat
    Get
    Set
'Usage
Dim instance As MailMerge
Dim value As WdMailMergeMailFormat

value = instance.MailFormat

instance.MailFormat = value
WdMailMergeMailFormat MailFormat { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdMailMergeMailFormat

Remarks

WdMailMergeMailFormat can be one of the following WdMailMergeMailFormat constants:

wdMailFormatHTML Sends mail merge e-mail documents using HTML format.

wdMailFormatPlainText Sends mail merge e-mail documents using plain text.

The MailFormat property is ignored if the MailAsAttachment property is set to True.

See Also

Reference

MailMerge Interface

MailMerge Members

Microsoft.Office.Interop.Word Namespace