GameGuy
November 25th, 1999, 03:31 PM
Using VC++ Class wizard I create an automation class of Word 2000's Application and Document Class what when I call create Dispatch it creates a new instance of Word but what i want to do is connect to the current running Word.
Any help would be great.
November 25th, 1999, 06:07 PM
What do you mean under "connect"? I've never programmed VC, but in VB I did a lot of automation with Word. I used Word objects with their properties and methods to perform such tasks like search, replace, save the document with different name and so one. To start to do such things you can very easy (I remind that it was done in VB) just recording macro in Word, opening that macro in VB editor, analizing the code written by macro recorder and using it in VB by copying and pasting or by using ideas.
Vlad