Hi

Hi
Hello
Thanks for your
request. Could you please attach your template here for testing? I will check
the problem and provide you more information.
Best regards,
Hi Andrey,
Hello
Thank you for additional information. In your case you should just use SectionBreak (New Page) instead of SectionBreak (Continuous). Please see the following link to learn more:
Best regards,
Hi Andrey,
Hi
Thanks for your request. Sure, you can. You can use code like the following:
// Open template.
Document doc = new Document("in.doc");
// Set section strat of the first section of the template.
doc.getFirstSection().getPageSetup().setSectionStart(SectionStart.NEW_PAGE);
// Execute mail merge and save output
// ...................................
Hope this helps.
Best regards,
Hi Alexey,
Hello
Thank you for additional information. But I cannot reproduce the problem on my side using the latest version of Aspose.Words for Java (10.0.1). You can download this version from here:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/category1378.aspx
I use the following code:
// Open template.
Document doc = new Document("The+Template.doc");
// Set section strat of the first section of the template.
doc.getFirstSection().getPageSetup().setSectionStart(SectionStart.NEW_PAGE);
// Execute mail merge and save output
// ...................................
Best regards,