hi,
I am just trying to get the Fields update method working on your new release of 7.0 (which if I can get it working is a godsend for us). I have a document which I have attached that has a table of contents that needs updating. The code I am using is below
Document doc = new Document(@"TOC.docx");
doc.UpdateFields();
doc.Save(@"Output.docx", SaveFormat.Docx);
When I open Output.docx the TOC remains un-updated. And displays the full hyperlink description. If I run update fields using Word then the TOC is rebuilt.
Am I using this method correctly?
Regards Bruce
Thanks for your request. Yes, you use this method correctly, but the current version of Aspose.Words does not support updating TOC fields. We are still working on Fields Calculation Engine, which will allow updating all fields. Updating TOC fields will be supported in a one of the next releases. Please see the following link to learn more https://docs.aspose.com/words/net/update-fields/
Best regards,