How can I get the correct result at once with Document.UpdateField()?

Hello!

I have a document(XREF-A.docx) that needs to fix x-ref numbers and TOC.
XREF-A.docx (24.2 KB)

I called Document.UpdateField() and got the result document(XREF-B.docx)
XREF-B.docx (20.1 KB)

But this file also has an error. So I called Document.UpdateField() again and got the correct result document (XREF-C.docx)
XREF-C.docx (20.8 KB)

Why can’t I get the correct result at once with Document.UpdateField()?
And if need multiple calls, how much do I call with Document.UpdateField()?

Please let me know the solution.

Thank you.

@softdev102985
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25492

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

Thank you. I will wait for your solution.

1 Like

The issues you have found earlier (filed as WORDSNET-25492) have been fixed in this Aspose.Words for .NET 23.7 update also available on NuGet.

1 Like