A
Alex Müller
I access a word document with an embedded excel object from C++.
I need to query the excel object for the values of the cells, which I don't achieve.
I call on the Word object:
Selection.WholeStory
Selection.InlineShapes(1).OLEFormat.DoVerb
When I continue examining the object that I receive with Selection.InlineShapes(1).OLEFormat, I can call ProgID and am given "Excel.Sheet.8".
But I cannot call commands on that object that I would call on an Excel.Worksheet object, like "Range" for example (theres no DISPID for "Range").
Usually when I try finding out automation commands, I record a macro; but this time it is impossible, because the embedded object isn't enabled during macro recording.
So how can I access the cell values ?
The OLEFormat.Object has a Sheets collection which I can aquire. Sheets.Count yields 1.
But neither Sheets(0), Sheets(1), Sheets.Item(0), Sheets.Item(1) gives any object to me, I always reveive error -2147352573 / 0x80020003 (member not found).
I need to query the excel object for the values of the cells, which I don't achieve.
I call on the Word object:
Selection.WholeStory
Selection.InlineShapes(1).OLEFormat.DoVerb
When I continue examining the object that I receive with Selection.InlineShapes(1).OLEFormat, I can call ProgID and am given "Excel.Sheet.8".
But I cannot call commands on that object that I would call on an Excel.Worksheet object, like "Range" for example (theres no DISPID for "Range").
Usually when I try finding out automation commands, I record a macro; but this time it is impossible, because the embedded object isn't enabled during macro recording.
So how can I access the cell values ?
The OLEFormat.Object has a Sheets collection which I can aquire. Sheets.Count yields 1.
But neither Sheets(0), Sheets(1), Sheets.Item(0), Sheets.Item(1) gives any object to me, I always reveive error -2147352573 / 0x80020003 (member not found).