Using Aspose.Words 9.0, I am running the following code on the attached document, TestTocIn.doc
Aspose.Words.Document doc = new Aspose.Words.Document("C:\TestTocIn.doc");
doc.UpdatePageLayout();
doc.Save("C:\TestTocOut.doc");
The attached document, TestTocOut.doc, is the output. The page numbers listed in the table of contents should be in the format “a, b, c” but are “1, 2, 3” instead. This is particularly a problem when sections of a document have different page # formats.
Thanks for any help in this matter.
Carl