I am generating a word document using Aspose Word. The document includes multiple records being passed to MailMerge.ExecuteWithRegions(DataTable) using a DataTable.
In order to start each record of data on a new page I have added a pagebreak into my template right before TableEnd mergeFiled, and that adds an extra blank page after the last record. Can you show me a way to get rid of the last blank page?
Or a different way to this so it won’t produce an extra blank page?
Thanks for your inquiry. Please check following documentation link for different options to control new page during Mail Merge with regions. Hopefully it will resolve the issue. However, if the issue persists then please share your template and code here as ZIP file. We will look into it and will guide you accordingly.