I have an automation application that adds a custom Watermark image to a document. After the watermark image is added, when the user types information into the document, the display of the characters lags behind the typing by a second or two. This is very annoying to power typist. This only happens when the image is visable (i.e. Print View) and not in Draft View. If I add the watermark image manually to a document, the typing delay does not occur.
The following is the code fragment that addes the Watermark image:
Mmmm. View.SeekView is not a reliable method to work with headers and footers programmatically. I suspect (but don't know) that this is where the problem could be.
Instead, work directly with the HeaderFooter object (in the case of Shapes) or with the HeaderFooter.Range object (for text). In your code, just comment out the lines that use SeekView and see what difference that makes?
And I'd put the line with View.Type before you start manipulating the HeaderFooter, as that's how Word prefers to work.Cindy Meister, VSTO/Word MVP
Marked as answer byTim LiWednesday, January 21, 2009 2:51 AM