> Hi =?Utf-8?B?d2luc2xhcnM=?=,
>
> You might be best off with this question in the Office.developer.automation
> newsgroup. You're more likely to meet other programmers there who work at this
> level. The Word, Excel and Powerpoint interfaces were all developed
> individually, by different teams, many years ago. What they expose/provide is
> quite different.
>
> InlineShapes is particular to Word. The other Office apps do use the Shapes
> collection, as it bases on the shared Office graphics tools, but it's not said
> that you can use it at the level you appear to be working at.
>
> > As I wrote in my original post I use IOleContainer::EnumObjects
> > Here is a snippet of my code that works in IE/Excel/PowerPoint but not in
> > Word:
> > ("TOLEIP" is a smart pointer class, "ioc" is the IOleContainer pointer in my
> > control,
> > "_DQlix" is the dispatch interface to my satelite object)
> >
> > TOLEIP<IEnumUnknown> pEnumerator;
> >
> > // Get an enumerator for the embedded objects
> > HRESULT hr = ioc->EnumObjects (OLECONTF_EMBEDDINGS, &pEnumerator);
> > _ASSERTE (SUCCEEDED (hr));
> > if (FAILED (hr)) return;
> >
> > TOLEIP<IUnknown> pUnk;
> > ULONG uFetched = 0;
> >
> > for (UINT i = 0; pEnumerator->Next (1, &pUnk, &uFetched) == S_OK; i ++) {
> >
> > // Try to convert IUnknown pointer into wanted interface
> > TOLEIP<IDispatch> pDQlix;
> > hr = pUnk->QueryInterface (__uuidof (_DQlix), (void**) &pDQlix);
> > pUnk = NULL;
> >
> > if (pDQlix) {
> > // We have a match, use the interface
> > ...
> > }
> > }
> >
> > As you can see I am working at the low-level generic IOleContainer /
> > IOleObject level. I find it strange that Word does not supply the same kind
> > of support that
> > Excel does, but everything seems to indicate that that is the case.
> >
> > Can i get to the InlineShapes and Shapes collections in a general manner or
> > are they Word-specific?
> >
>
> Cindy Meister
> INTER-Solutions, Switzerland
>
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
>
http://www.word.mvps.org>
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
>
>