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)
Usage
Dim mailMerge1 As MailMerge
Dim returnValue As WdMailMergeMailFormat
returnValue = mailMerge1.MailFormat
Dim sampleValue As WdMailMergeMailFormat
mailMerge1.MailFormat = sampleValue
Syntax
Property MailFormat() As WdMailMergeMailFormat
WdMailMergeMailFormat MailFormat {get; set;}
property WdMailMergeMailFormat^ MailFormat{
WdMailMergeMailFormat^ get();
Void set(WdMailMergeMailFormat^);
}
public WdMailMergeMailFormat get_MailFormat();
public void set_MailFormat(WdMailMergeMailFormat);
function get MailFormat() : WdMailMergeMailFormat;
function set MailFormat(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.
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
MailMerge Interface
Microsoft.Office.Interop.Word Namespace