Hi
Im facing a strange behaviour since I’ve updated to Aspose 18.11.
My docx contains many Headings and sometimes a Heading is followed by a section break.
When I mailmerge the docx with Aspose Word the Heading counter restarts after each section break. So the whole numbering on the headings is muddled.
The same code worked with an older Versions of Aspose. (For Example Version 15.3)
I simplified the whole thing and still end up with the same issue. It’s reproducible with a very basic example, see the attachment. (Left hand side before merging)
headingProblem.png (18.0 KB)
Here is the code snippet:
Document doc = new Document(dirPath + “simpleSystembook.docx”);
String[] fieldNames = new String[1];
String[] fieldValues = new String[1];
fieldNames[0] = “bla”;
fieldValues[0] = “bla”;
doc.getMailMerge().execute(fieldNames, fieldValues);
doc.save(dirPath + “MERGEDsimpleSystembook.docx”);
The Word File is also as basic as possible. It doesn’t even contain any mergeFields.
Is this a known issue or am I missing something?
Thanks for your support
Oliver