MailMerge.MainDocumentType Property
Returns or sets the mail merge main document type.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property MainDocumentType As WdMailMergeMainDocType
Get
Set
'Usage
Dim instance As MailMerge
Dim value As WdMailMergeMainDocType
value = instance.MainDocumentType
instance.MainDocumentType = value
WdMailMergeMainDocType MainDocumentType { get; set; }
Property Value
Type: Microsoft.Office.Interop.Word.WdMailMergeMainDocType
Remarks
The MainDocumentType property can be one of the following WdMailMergeMainDocType constants:
wdCatalog
wdDirectory
wdEMail
wdEnvelopes
wdFax
wdFormLetters
wdMailingLabels
wdNotAMergeDocument
If you set this property for a document that's already a main document, the attached data source is removed.