How to get an IDispatch Pointer from the OLEObject?

A

Andriy Krantvays

We embed an Excel.Worksheet in a Visio Drawing and

we want to get an IDispatch pointer from the OLEObject.

If we use OleObject.Object, we get an Exception.

How can we get an IDispatch Pointer from the OLEObject?

Thanks.
 
D

DLRdave

Andriy said:
How can we get an IDispatch Pointer from the OLEObject?

Have you tried opening the Exel embed first before making this call? Is
Excel installed and working properly on the machine where you are
trying to get the OLEObject...?
 
Top