execute_with_regions method

execute_with_regions(data_source)

Performs a mail merge from a custom data source with mail merge regions.

def execute_with_regions(self, data_source: aspose.words.mailmerging.IMailMergeDataSource):
    ...
ParameterTypeDescription
data_sourceIMailMergeDataSourceAn object that implements the custom mail merge data source interface.

Remarks

Use this method to fill mail merge fields in the document with values from any custom data source such as an XML file or collections of business objects. You need to write your own class that implements the IMailMergeDataSource interface.

You can use this method only when FieldOptions.is_bidi_text_supported_on_update is False, that is you do not need Right-To-Left language (such as Arabic or Hebrew) compatibility.

execute_with_regions(data_source_root)

Performs a mail merge from a custom data source with mail merge regions.

def execute_with_regions(self, data_source_root: aspose.words.mailmerging.IMailMergeDataSourceRoot):
    ...
ParameterTypeDescription
data_source_rootIMailMergeDataSourceRootAn object that implements the custom mail merge data source root interface.

Remarks

Use this method to fill mail merge fields in the document with values from any custom data source such as an XML file or collections of business objects. You need to write your own classes that implement the IMailMergeDataSourceRoot and IMailMergeDataSource interfaces.

You can use this method only when FieldOptions.is_bidi_text_supported_on_update is False, that is you do not need Right-To-Left language (such as Arabic or Hebrew) compatibility.

See Also