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
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:
https://reference.aspose.com/words/java/com.aspose.words/document/#updateFields
Best regards.