How update index field automatically?

Hello!
With aspose.word I create a new word document with many index.
When i have saved the document and open it, my index has an error.
The messagge is about “Error. There is not entry for the summary”.
How i can generate the index, from code C#?
Thanks in advance,
Lorenzo

Hi
Thanks for your inquiry. Unfortunately Aspose.Words doesn’t update INDEX fields. Currently Aspose.Words can update only DOCVARIABLE and DOCPROPERTY fields. As a workaround you can update fields inside the document manually (ctrl+A and F9). Also you can use macro to update fields. See the following link to learn more.
https://support.microsoft.com/en-us/topic/the-filename-field-does-not-automatically-update-when-you-open-a-document-in-word-de2bfb95-d990-1ced-a618-5ac0a2ec1be4
Best regards.