Aspose::Words::MailMerging namespace

The Aspose.Words.MailMerging namespace contains classes of the “original” mail merge reporting engine.

This reporting engine requires the document to be marked up with Microsoft Word mail merge fields, but supports more functionality than Microsoft Word’s mail merge.

The engine allows to quickly and easily populate a report template with data from various sources such as DataTable, DataSet, DataView, IDataReader or an array of values.

The MailMerge object which provides access to the reporting functionality is available via the Document.MailMerge property.

For the newer and more advanced reporting engine based on the LINQ method syntax see Reporting.

Classes

ClassDescription
FieldMergingArgsProvides data for the MergeField event.
To learn more, visit the Mail Merge and Reporting documentation article.
FieldMergingArgsBaseBase class for FieldMergingArgs and ImageFieldMergingArgs.
To learn more, visit the Mail Merge and Reporting documentation article.
ImageFieldMergingArgsProvides data for the ImageFieldMerging() event.
To learn more, visit the Mail Merge and Reporting documentation article.
MailMergeRepresents the mail merge functionality.
To learn more, visit the Mail Merge and Reporting documentation article.
MailMergeRegionInfoContains information about a mail merge region.
To learn more, visit the Mail Merge and Reporting documentation article.
MappedDataFieldCollectionAllows to automatically map between names of fields in your data source and names of mail merge fields in the document.
To learn more, visit the Mail Merge and Reporting documentation article.
MustacheTagRepresents “mustache” tag.

Interfaces

InterfaceDescription
IFieldMergingCallbackImplement this interface if you want to control how data is inserted into merge fields during a mail merge operation.
IMailMergeCallbackImplement this interface if you want to receive notifications while mail merge is performed.
IMailMergeDataSourceImplement this interface to allow mail merge from a custom data source, such as a list of objects. Master-detail data is also supported.
IMailMergeDataSourceRootImplement this interface to allow mail merge from a custom data source with master-detail data.

Enums

EnumDescription
MailMergeCleanupOptionsSpecifies options that determine what items are removed during mail merge.