Free Support Forum - aspose.com

Suggestions on how to update fields programatically?

Do you have any suggestions for how to update field values
programatically? I’m creating a document with a table of contents
and the NUMPAGES field on the cover sheet. I’d like to be able to
udpate these without the use having to select all and press F9.



How have people solved this issue in the past?



Thanks


Hi,

Unfortunately, for the time being the only obvious workaround is adding a simple startup macro to the document. For more information, see the end of this topic:

http://www.aspose.com/wiki/default.aspx/Aspose.Words/InsertingDocumentElements.html