UpdateFields() has two different speeds at which it operates in my project depending on which version of Aspose.Words for .NET I use. If I use version 9.5, my test document is generated in ~45 seconds. However, when using version 9.6 it takes about 2 minutes and 45 seconds. Did the internal changes made for 9.6 make that much of a difference? Any ideas?
Back ground: I have three table of contents (TOC) that must be populated in my document. In order to populate each one correctly, they are individually updated. Each one is in its own section. A list of the TOC section indexes in the variable tocSectionIndices. The basic code snippet is:
// Populate Table of Contents
foreach(int tocSectionIndex in tocSectionIndices)
{
doc.Sections[tocSectionIndex].Range.UpdateFields();
}
// Update page numbering of document
doc.UpdatePageLayout();
I found out that it was UpdateFields() by stepping through my code in the debugger. Executing the above code snippet is where my program slowed down.
Thanks!