We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The Table of contents page numbers are incorrect with actual page

When the word document is created and before it is saved doc.UpdateFields() is executed but the table of contents page numbers due not agree with the actual page numbers. See attached. Using Visual Studio 2013 and Aspose word for ASP.NET version 14.1.0.0.

Hi Paul,

Thanks for your inquiry.

I have tested the scenario using following code example and have managed to reproduce the same issue at my side.

Document doc = new Document(MyDir + "Change_Management(V3)_-_26Feb2014-1048-12.Doc");
doc.UpdateFields();
doc.Save(MyDir + "Out.docx");

For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9749. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-9749) have been fixed in this Aspose.Words for .NET 22.8 update also available on NuGet.