I have found a problem with tables of contents.
Steps to Reproduce:
Data: toc.zip (35.1 KB)
- document contains toc with custom levels and one headline with the corresponding style (ToC1), see test.docx.
- TOC \h \z \t “ToC1;1”
- doucment is loaded
- fields are updated
- document is saved
Document document = new Document(“test.docx”);
System1 - Microsoft Windows Server 2016 Datacenter - without Microsoft Word installed
System2 - Microsoft Windows 10 Pro - Microsoft Word 2013 installed
tested with Aspose.Words for Java version 18.7 and 20.8
I get different results depending on the system. The result of System2 is correct, see result_local.docx. The result of System1 is not correct, see result_server.docx. The toc is empty and the following message is displayed: “No table of contents entries found”. In addition, both paragraphs have been merged.
It is probably not easy to reproduce the error. If you need more information, e.g. about the systems, please ask.