Skip to main content

Slow Text Tag Performance in AutoTag


Running templates from AutoTag with full text tags is extremely slow.


This is due to limitations in the Word COM API. If you go to options and change the tag mode to Fields and uncheck the two parse text tags check boxes, everything runs fine. Very fast, very responsive, and no errors.

If you use text tags, we need to walk the entire document, paragraph, by paragraph, parsing each paragraph, to find both tags, and for switch/case/etc tags, the matching end tag. We have to do this because the Find() method in Word does not always work. It misses tags, especially inside tables.

The slow performance and high memory usage are due not to AutoTag directly, but to what Word is apparently doing when we request the contents of a cell paragraph

We recommend using Field tags instead.

  • Was this article helpful?