We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Same Mail Merge Region in multiple places

Hello Aspose,

Currently evaluating Aspose.Words on a 30 day licence.

I have a mail merge region defined in two place in a document template. The first region has only summary merge fields whilst the second region has additional merge fields added.

When I call ExecuteWithRegions only the first occurring region is populated ?

Regards, Paul

Hi Paul,

Thanks for your inquiry.

Only the first instance of duplicate regions are populated during mail merge. You will need to execute mail merge again to populate the second region.

If you have any further queries, please feel free to ask.


Hello Adam,

Thanks for the advice. I’d already tried calling the merge twice, but I’d forgotten to reset the enumerator in the IMailMergeDataSource implementation for the second call.

Regards, Paul.

Hi Paul.

It's great you were able to solve the issue. Please feel free to ask anytime you have any queries.