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

Free Support Forum - aspose.com

Updateing fields automatically

Hi,

I’m using Aspose API for Java version 2.4.2 for converting HTML to DOC.

After inserting fields(Page Number, Page Count, etc.,) in the document and saving it, the field in the resulting document appears as XXX. Only after ‘updating the fields’(Right click on the field -> Update Field) proper values get substituted for XXX.

Is there any way/function to do it automatically so that the actual values appear on save itself.

By
Thangaraj

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

Thanks for your request. Unfortunately, Aspose.Words does not update PAGE and NUMPAGES fields. Currently, Aspose.Words can update only DOCVARIABLE and DOCPROPERTY fields. Please see the following link for more information:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/com/aspose/words/document.html#updateFields()

Best regards.