Embedded mode recognition

E

empi

Hi,

is there a way to retrieve an information that office application has been
embedded. (It should be done in the com-addin, probably in OnConnection
method). I have found an example in MSDN (COM Add-ins in Detail by Peter
Vogel). There they are reading first element of parameter "custom" (the last
parameter) given to OnConection method. Unfortunately when e.g. word is
embedded into internet explorer, the parameter is not defined...

Does anybody have another idea?

Thanks in advance,



Martin
 
E

empi

Hi,
I was making further investigation and found out, that I could use
Application.Visible property (unfortunately it doesn't work with PowerPoint
:-(, where the visibility is always set to false). Another problem arises
when I have one document embedded and another not - then it behaves
according to the first opened document ... :-(.
If anyone has any hint, please post it :).
Thnx,

M.
 
Top