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

Free Support Forum - aspose.com

Problem with nested regions spanning multiple pages

Hi all,

I have an issue calling MailMerge.ExecuteWithRegions() when I have nested regions.

I have an external region which contains fields from a master record, and a nested region (wrapping a table) that should list details records.

My problem starts when there are too many details records to fit in a single page: I would need to repeat the master information in the second page, and keep listing the remaining details records.

I am using MergeFields into the document, and am providing all the data using classes derived from IMailMergeDataSourceRoot and IMailMergeDataSource.

Could you give me any suggestions about the proper structure of the document?
For the details table, should I put a single row into the document (with TableStart in the first column and TableEnd in the last), or should I put the maximum size table (e.g. 4 rows) surrounded by TableStart / TableEnd fields?
Do I need to use {NEXT} field for advancing the master record? If so, where should I put it?

Kind regards,

Hi Giovanni,

Can you please share you input Word template, XML data and expected output document?

Best Regards,