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

Free Support Forum - aspose.com

MailMerge with Regions - Groups of Three Table Rows


I have a complex mail merge requirement which involves a table with groups of three rows for each record. I have tried MailMerge.ExecuteWithRegions, but it doesn't work because TableStart and TableEnd have to be on the same row.

Do you have any suggestions as to how this could easilly be acheived?



Hi Jim,

Thanks for your inquiry.

Yes, this is possible. You will need to use nested mail merge and set MailMerge.CleanupOptions option include RemoveEmptyParagraphs before merging.

These two techniques can be used to create an inner table that has as many rows as you want. During mail merge the RemoveEmptyParagraph setting will remove the paragraphs in between and the tables are joined together automatically before save.

Please see the attached template for a demonstration. Let us know if we can help with anything else.


Hi Adam,

Thanks for your advice and sample template.

Problem solved.



Hi Jim,

Thanks for your feedback. It is perfect that you managed to achieve what you were looking for. Please let us know any time you have any further queries.

Best Regards,

Can you send me this tempalte


You can get sample template documents from the following GitHub Example’s section: