Document.UpdateFields method takes much time to execute using .NET

Hi there,

I was playing aroung with the generation of TOC. I have a predefined Field in a Template, which i update after some processing (e.g. adding content from other documents).
For a Document which is 23MB as .doc file, in my Program I need ~40sec to update the TOC.
using the update() method of the Field Objekt of the TOC.
is there any Chance to optimize this and speed it up e.g. by pre-processing the headlines which are touched anyway before?

best Regards Robert

Hi Robert,

Thanks for your inquiry. It would be great if you please share your input document along with code here for testing. I will investigate the issue on my side and provide you more information.

Unfortunately, it is difficult to say what the problem is without the document and simplified application. We need your document and simple project to reproduce the problem. As soon as you get these pieces of information to us we’ll start our investigation into your issue.

A post was split to a new topic: UpdatePageNumbers does not update the TOC page numbers