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

Free Support Forum - aspose.com

How can you use Aspose.Words to signal Word to Update fields on next load?

I have a document that has bookmarks to sections numbers like “1.2.1” for instance. This number may change, and also is not readily available in Aspose. So I create a bookmark of the heading and later created a field like:

DocBuilder.InsertField(" REF " & bookmarkName & " \r ", “”)

This is will correctly assign the reference to the Header’s number, but will default the field value to “”, as seen in the function call above.

So when you first open the document this field is “”. You can quickly remedy this by selecting the field and requesting and update of the field.

I need to signal that this field is in need of update currently, so it will update the value the first time it is loaded.

I have tried replacing the “” with " " and Nothing. None of these have worked.

Can you help me how to do this, without saying to the user “please press Ctrl-A then F9”

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

Thanks for your inquiry. Aspose.Words does not update REF link. Currently Aspose.Words is able to update DOCVARIABLE and DOCPROPERTY fields. Please see the following link for more information:


As a workaround you can update field manualy or use a macro. See the following link for more information.


Best regards.