I have a word dotx document with a end section. See attachment.
In the code I have an Aspose document doc which content is the attachment.
When I execute underlaying code, builder.getCurrentNode cannot be found.
currentNode stay null, and the table is not added to y document.
In other templates it works great. Can you tell me what is the problem with this template?
StringBuilder builder = new StringBuilder();
DatabaseManager dbManager = DatabaseManager.getInstance();
jdbcResults = dbManager.runSqlStatementWithVariables(variabelenInQuery, sqlQuery, slProjectObject, slZaakObject);
DocumentBuilder dbuilder = new DocumentBuilder(doc);
builder.moveToSection(0);
// Specify character formatting for the run of text.
Font f = builder.getFont();
f.setName("Verdana");
f.setSize(8);
// Format the heading row with the appropriate properties.
builder.getFont().setBold(false);
builder.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
builder.getCellFormat().setVerticalAlignment(CellVerticalAlignment.CENTER);
builder.getRowFormat().setHeight(11);
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);
builder.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);
builder.getParagraphFormat().setRightIndent(0);
builder.getParagraphFormat().setLeftIndent(20);
Node currentNode = builder.getCurrentNode();
while (currentNode != null)