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

Free Support Forum - aspose.com

LINQ Reporting engine does not keep the explicit page break using Java


I am Java developer using Aspose for words for generating word document.
We are using LINQ reporting to define Aspose template for word.

Template code.

<<foreach [ in users]>>




Java code:
Document doc = new Document(“Template file”);

JSONObject jsonModel = new JSONObject(“Template data”);
DataSet set = new DataSet(“DS”);
set.readXml(new ByteArrayInputStream(otherXml.getBytes(StandardCharsets.UTF_8)));
ReportingEngine engine = new ReportingEngine();
DataTableCollection tables = set.getTables();
engine.buildReport(doc, set);

Page break is not working.
Can anyone help me here.



To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.