The name of the method suggests you are adding your control
as an OLE insertable object, not as a control. These are not
presumed to support Automation and are controlled by the
container (Word) directly. I don't know Word, so can't tell you
any specifics, but you may consider looking for a different way
of adding your object (or I may be wrong). Ask this question
in the office groups. For example:
microsoft.public.office.developer.automation

Signature
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
> hi!
>
[quoted text clipped - 12 lines]
> Thanks in advance.
> Ahmad Jalil Qarshi
Ahmad Jalil Qarshi - 30 Mar 2005 08:18 GMT
Thanks Alexander!
you are right i didn't add my control as an activex control. now i have
added it using AddOLEControl. it return the InlineShapePtr which contains a
member OLEFormat. i used OLEFormat's GetObject function to return the
IDispatchPtr and so i accessed my Control's properties successfully.
Thanks again.
Ahmad Jalil Qarshi
> The name of the method suggests you are adding your control
> as an OLE insertable object, not as a control. These are not
[quoted text clipped - 30 lines]
> > Thanks in advance.
> > Ahmad Jalil Qarshi