How to update all the fields in a document


#1

Hi,

I've been trying to update the fields, ie. 'IF' field, in my document by calling the 'UpdateFields' method. This however doesn't seem to update the fields in the document I am trying to create.

doc.Range.UpdateFields();

How do you update the whole document? Could you please point me in the direction of a solution?

Many thanks,

FG.


#2

That is because UpdateFields method at the moment updates the results of DOCPROPERTY and DOCVARIABLE fields only. IF field evaluation is not supported by Aspose.Words yet. We plan to add the support for IF fields later this year.

Best regards,