MailMerge.MailAsAttachment Property
Determines if the merge documents are sent as attachments when the mail merge destination is an e-mail message or a fax.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim mailMerge1 As MailMerge
Dim returnValue As Boolean
returnValue = mailMerge1.MailAsAttachment
Dim sampleValue As Boolean
mailMerge1.MailAsAttachment = sampleValue
Syntax
Property MailAsAttachment() As Boolean
bool MailAsAttachment {get; set;}
property Boolean MailAsAttachment{
Boolean get();
Void set(Boolean);
}
public boolean get_MailAsAttachment();
public void set_MailAsAttachment(boolean);
function get MailAsAttachment() : Boolean;
function set MailAsAttachment(Boolean);
Remarks
This property returns True if the merge documents are sent as attachments when the mail merge destination is an e-mail message or a fax, and False if not. Set the property value to True or False to enable or disable the functionality.
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