MailMergeSettings

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

NameTypeAccessDescription
ActiveRecordintRead/WriteSpecifies the one-based index of the record from the data source which shall be displayed in Microsoft Word.
AddressFieldNamestringRead/WriteSpecifies the column within the data source that contains e-mail addresses.
CheckErrorsMailMergeCheckErrorsRead/WriteSpecifies the type of error reporting which shall be conducted by Microsoft Word when performing a mail merge.
ConnectStringstringRead/WriteSpecifies the connection string used to connect to an external data source.
DataSourcestringRead/WriteSpecifies the path to the mail-merge data source.
DataTypeMailMergeDataTypeRead/WriteSpecifies the type of the mail-merge data source and the method of data access.
DestinationMailMergeDestinationRead/WriteSpecifies how Microsoft Word will output the results of a mail merge.
DoNotSupressBlankLinesboolRead/WriteSpecifies how an application performing the mail merge shall handle blank lines in the merged documents resulting from the mail merge.
HeaderSourcestringRead/WriteSpecifies the path to the mail-merge header source.
LinkToQueryboolRead/WriteNot sure about this one.
MailAsAttachmentboolRead/WriteSpecifies that the documents produced during a mail merge operation should be emailed as an attachment rather than the body of the actual e-mail.
MailSubjectstringRead/WriteSpecifies the text which shall appear in the subject line of the e-mails or faxes produced during mail merge.
MainDocumentTypeMailMergeMainDocumentTypeRead/WriteSpecifies the mail-merge main document type.
OdsoOdsoRead/WriteGets or sets the object that specifies the Office Data Source Object (ODSO) settings.
QuerystringRead/WriteContains 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.
ViewMergedDataboolRead/WriteSpecifies that Microsoft Word shall display the data from the specified external data source where merge fields have been inserted (e.g.

Methods

SignatureDescription
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.

See Also