Discussion:
MS-Word content change event
(too old to reply)
Thomas Sinclair
2009-05-10 03:17:30 UTC
Permalink
Hi, Everyone

I am working on a Microsoft Word Add-in and need a shove in the right
direction, please.

I need to build a feature that is technically equivalent to the Microsoft
Word spell checker. That is, it needs to do some work (in a separate thread)
as the user types.

I haven't been able to find an event or technology that I can use to trap
changes that are made to the document either through keystrokes or
otherwise.
Events in the Document, Content, Window, Pane, View, and Range objects.
Using SetWindowsHookEx(WH_KEYBOARD_LL, ... to trap keyboard events. This
should work but I will try working within MS-Word first.
The Selection change events.
The Application has a document change event but as I understand it, that
doesn't mean the document content.

PS: We are using VB6 macro's, along with VSTO 2005 with C# but I don't mind
using anything as long as I can get it working.

Thanks & Kind Regards,
Tom
Cindy M.
2009-05-11 08:13:18 UTC
Permalink
Thomas has received a replies in the VSTO newsgroup.

Cindy Meister

Loading...