Hi,
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]>>
<<[username]>>
<<[fields]>>
<>
<>
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);
doc.save(file);
Page break is not working.
Can anyone help me here.
Regards
Yogi