Run Add-in only when embedded in windows Form.

T

Theodar Sundeep

Hi,

I have developed Excel Add-in, and have hosted the Excel into my windows
form application using the ActiveX control.

The Add-in that I have developed is a "Managed COM Add-In" which implements
the IDTExtensibility2 interface.

My question here is that I need to Load the add-in only when the Excel is
hosted in my windows form (i.e inside my OLE ActiveX control). I need to get
this info in the OnConnection event of IDTExtensibility2 so that I don’t
proceed with the loading of the Excel add-in. Kindly let me know if there is
any way for me to differentiate if the excel is hosted inside a ActiveX
control or standalone [other than the ((Excel.Application)
application).Visible property].

Thanks & Regards,
M.Theodar Sundeep Kumar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top