Document.UpdateFields does not update the TOC field using .NET

Hi,


I have created a webservice method which uses Aspose.Words to generate a Word document based on a template and which returns the filename + path of the document.
When calling the method doc.UpdateFields() in the webservice method, the table of contents is not updated.
When I use a test application with exactly the same code to generate the document (simply a .aspx webform with a generate document button), the TOC is correctly updated!

What could be the cause of the problem?

It’s pretty urgent.

Thanks in advance.

grts,
Kim Grandgagnage

Hi Kim,

Thanks for your query. It would be great, If you share your document for investigation purposes.