Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORACLE with Embedded OLE2/EXCEL

Status
Not open for further replies.

rawl

Programmer
Sep 5, 2002
3
US
Been following the OLE2 Excel threads hoping for help with a similar problem involving manipulating an OLE2 embedded spreadsheet.

Trying to insert values in an embedded excel spreadsheet with an excel chart. Once one gets a handle to the OLE2 automation object, the GET_OBJECT_PROPERTY call for handles to the Workbooks, or other lower properties all fail.

Starting with:

obj_hnd := get_interface_pointer('graph01');
activate_server('graph01');

with graph01 being the ole2 container name, a handle value seems to be returned but using it in a statement like:

workbooks := OLE2.GET_OBJ_PROPERTY obj_hnd, 'workbooks');

just fails.

Docs state that obj_hnd should be a valid ole2.ole_type handle to the spreadsheet embedded in the chart01 ole container but behavior indicates perhaps otherwise?

Glad for any help.
 
Figured it out, got to get the reference name of the OLE2 container right!

Will post code if any interest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top