Hi FeiXing,
I want to write an add-in based on word2003. It needs to capture the event
of editting text in MSword. After capturing the event, the add-in trys to
analysis the current input and give appropriate suggestion to user(similar
to the function in vs.net: input a name of object and then input '.', the
corresponding members of this object will be displayed).
Now I don't know how to capture this event.
There is no way to capture when/what the user is typing in Word.
Given Word 2003, the closest you could manage would be a SmartDocument
project. You'll find more on SmartDocuments on the msdn site at
microsoft.com. Basically, you insert XML tags into a document, write a DLL
that will react to the presences of the insertion mark within specific tags,
and display information in the Actions task pane.
This is very similar to what VSTO 2005 will be able to do, but much more
complicated to set up. OTOH, you can create the DLL with VB6 or Delphi or
something like that, you're not limited to a .NET Framework language.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail