Redundant field updates for Word?

Oct 10, 2016 at 9:58 PM
In the code for WordConverter.cs I think you're updating all the fields several times.
  1. You walk all sections updating the fields in the section & their headers & footers. This updates everything in the main story and all headers/footers.
  2. You then walk all fields in the document. This gets all fields in the main story again.
  3. Finally you walk all stories and all fields in each story. This again gets the main story, all headers/footers, and also footnotes, etc.
    Am I missing something?
thanks - dave
Coordinator
Oct 11, 2016 at 12:34 PM
Hi Dave

We do indeed try several variations when attempting to update fields. What we've found in the past is that while you'd think that iterating through the sections including the headers and footers would get all the fields, the Office interop doesn't behave that way. Rather, for some documents, we need to use a sledgehammer to get everything to update.

In the next release, we'll have a /word_no_field_update option to skip any field updates and a /word_field_quick_update which'll try to do a quick field update (with the downside being that not all fields may get picked up and any fields that request user interaction may cause the conversion process to block.

Regards
Vittal