aspose.words.mailmerging module

The aspose.words.mailmerging module 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.mail_merge property.

For the newer and more advanced reporting engine based on the LINQ method syntax see aspose.words.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.
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.
ImageFieldMergingArgsProvides data for the IFieldMergingCallback.image_field_merging() 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.

Enumerations

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