I am using Free Spire.Doc for Java to iterate through a template multiple times, perform mail merge and save all the results in a document. The template is a table but I need each value set to populate in a new page as a new table instead of continuing from the last table. Could you please explain how to achieve this? I am currently using the following method for Mail Merge.
- Code: Select all
MailMergeDataTable mm = new MailMergeDataTable("TableName", valueSetsList);
document.getMailMerge().executeGroup(mm);
But the result is one continuous table with all the valueSets for the merge fields without page break between each value set. How do I get each value set to populate in a new table in a new page?
Thank you!