PAGEREF fields do not respect page # formatting

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

Hi Carl,

Thanks for your request. I managed to reproduce the problem on my side. The problem might occur because currently Aspose.Words does not support page number field formatting. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
Best regards,

The issues you have found earlier (filed as WORDSNET-1289) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.