PDA

View Full Version : [SLEEPER:] RecheckSmartTags replacement



qazpl
05-07-2007, 06:31 AM
RecheckSmartTags method works in the foreground and everything else must wait until it finishes. What I need is to force word app to recheck smarttags in the background. I realized that if change is made in a paragraph then paragraph is rechecked so I wrote code to replace paragraph mark in each paragraph.
There are a few issues with this.
1) on first paragraph it doesen't work (not sure why).
2) extra paragraph mark is added at end of document.
3) replaceAll method causes whole document to be selected even when called from a range object(which prevents this from being unnoticable).
Any help would be appreciated thanks.