Free Support Forum -

Executing MailMerge with regions - multiple regions for same datasource

Dear aspose team,

we have a template with regions for same TableName/datasource. If we call executeWithRegions(IMailMergeDataSource) only the first region in the document is replaced. So we have call for each region in the template executeWithRegions().

It would be nice if that wouldnt be necessary. Possible solution could be a first() method in the IMailMergeDataSource interface which is called if a region start field is found.

What do you think about this?

Kind regards,

Jens Boeckel
Abacus Research AG


Thank you for your suggestion. I logged it in our defect database. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

Hi Jens,

Just a quick note, you can work around this issue for the time being if you wrap your DataSource class in a DataSourceRoot class. This will merge all duplicate regions in the document with your data.


The issues you have found earlier (filed as WORDSNET-5582) have been fixed in this Aspose.Words for .NET 16.10.0 update and this Aspose.Words for Java 16.10.0 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.