Click to See Complete Forum and Search --> : How to get dispatch interface to running Excel Application


ashoksharma
May 18th, 1999, 12:40 AM
Environment : VC++ 6.0, NT 4.0

Hi All,

In visual basic u have CreateObject call to create a new object and GetObject call to get access to the running object of the activeX component.

Im programming in VC++ and I know there is a call available COleDispatchDriver::CreateDispatch which looks same as Visual basic call CreateObject.

Does anybody know about how to get dispatch pointer to running object.

My requirement is to export data to excel sheet. I want the user to have lauched excel application and I just wanna export data in the active sheet in the running excel app.

Can somebody help me,

Thanks in advance,
ashok



Ashok Sharma
Software Engineer
Fusion Systems Japan, Tokyo