When an ADVANCE command appears in a document, running UpdateFields appears to remove or at least disables the functionality. This can be seen in the attached document (sample.doc), in the table of contents for each entry, an ADVANCE command is used between the article number and the article title. For example, “1.1{ADVANCE \x 40}NAME OF TRUST . . .”. When UpdateFields is run to update the bookmarks so the pages are resolved, the ADVANCE command appears to be gone or disabled because the TOC entry then reads “1.1NAME OF TRUST . . .”. I’ve also attached sample.out.doc to show this. I’ve tried various workarounds for this issue but have been unsuccessful. Any ideas for a resolution or workaround would be greatly appreciated.
The code to re-create this is as follows:
doc = new Document(“sample.doc”);
doc.UpdateFields();
doc.Save(“sample.out.doc”, SaveFormat.Doc);
I am using Aspose version 19.7.
ReferenceDoclet_withSingleCell.zip (22 Bytes)Debug.zip (215.4 KB)