Free Support Forum - aspose.com

Update TOC with Aspose.Words 7.0.0.0

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


Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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

http://www.aspose.com/community/blogs/aspose.words-for-.net-java-reporting-services-and-jasperreports/archive/2009/09/13/field-update-in-aspose-words-the-killer-feature-of-2009.aspx

Best regards,

The issues you have found earlier (filed as 10380) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)