|
Hi Mukesh,
Im sorry for the delay;
Idid not succeeded yet. As I understand from your explanations you want me to start a new project but I already have an addin which is hosted by the ms-word. The addidn inserts a command button into the MSW and sinks its events (the events of the command button).
When the button is clicked Im back in the CConnect class, there I have an IDispatch *pApplication.
Somehow, I cant get the document object. I can only use the: pApplication->QueryInterface(...); GetProperty(...); and SetProperty(...);
Of course, I can use: pApplication->AddRef(), pApplication->GetIDsOfNames(),
pApplication->GetTypeInfo(), ...
pApplication->Invoke(), ...
(*) I dont use MFC, I use ATL.
I get a fatal error C1083 whenever I try to include Word.h or word8.h ... Thus, i dont know what to do.
????
--------------------
I hope, you know how to help me now, because it seems like you are the only one who knows anything.
Best regards,
tcp.
|