MailMergeSettings
Overview
MailMergeSettings is a class in Aspose.Words FOSS for .NET.
Specifies all of the mail merge information for a document.
This class provides 2 methods for working with MailMergeSettings objects in .NET programs.
Available methods include: Clear, Clone.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: ActiveRecord, AddressFieldName, CheckErrors, ConnectString, DataSource, DataType, and 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ActiveRecord | int | Read/Write | Specifies the one-based index of the record from the data source which shall be displayed in Microsoft Word. |
AddressFieldName | string | Read/Write | Specifies the column within the data source that contains e-mail addresses. |
CheckErrors | MailMergeCheckErrors | Read/Write | Specifies the type of error reporting which shall be conducted by Microsoft Word when performing a mail merge. |
ConnectString | string | Read/Write | Specifies the connection string used to connect to an external data source. |
DataSource | string | Read/Write | Specifies the path to the mail-merge data source. |
DataType | MailMergeDataType | Read/Write | Specifies the type of the mail-merge data source and the method of data access. |
Destination | MailMergeDestination | Read/Write | Specifies how Microsoft Word will output the results of a mail merge. |
DoNotSupressBlankLines | bool | Read/Write | Specifies how an application performing the mail merge shall handle blank lines in the merged documents resulting from the mail merge. |
HeaderSource | string | Read/Write | Specifies the path to the mail-merge header source. |
LinkToQuery | bool | Read/Write | Not sure about this one. |
MailAsAttachment | bool | Read/Write | Specifies that the documents produced during a mail merge operation should be emailed as an attachment rather than the body of the actual e-mail. |
MailSubject | string | Read/Write | Specifies the text which shall appear in the subject line of the e-mails or faxes produced during mail merge. |
MainDocumentType | MailMergeMainDocumentType | Read/Write | Specifies the mail-merge main document type. |
Odso | Odso | Read/Write | Gets or sets the object that specifies the Office Data Source Object (ODSO) settings. |
Query | string | Read/Write | Contains the Structured Query Language string that shall be run against the specified external data source to return the set of records which shall be imported into the document when the mail merge operation is performed. |
ViewMergedData | bool | Read/Write | Specifies that Microsoft Word shall display the data from the specified external data source where merge fields have been inserted (e.g. |
Methods
| Signature | Description |
|---|---|
Clear() | Clears the mail merge settings in such a way that when the document is saved, no mail merge settings will be saved and it will become a normal document. |
Clone() | Returns a deep clone of this object. |