none
Runtime Load the Addin RRS feed

  • Question

  • Hi,

    I have created an "Addin" using Visual studio 2013 using VSTO concept. But i want to load the addin from my internal application not all the time. So i have tried the following link to try to load the VSTO file at runtime.

    http://blogs.msdn.com/b/accelerating_things/archive/2010/09/16/loading-excel-add-ins-at-runtime.aspx
    http://support.microsoft.com/kb/280290

    But it not allowing to load the addin(vsto) at runtime. Can anyone help me solve this issue.

    Tuesday, December 2, 2014 4:35 PM

Answers

  • Hello Ram,

    Your links are for XLL add-ins. Do you develop a VSTO based COM add-in?

    You need to install the add-in with the LoadBehavior windows registry key set to 8. Then, when you need to enable the add-in (i.e. load it), you can find it in the COMAddins collection (see the corresponding property of the Application class) and then set the Connect property. The Connect property returns True if the add-in is active; it returns False if the add-in is inactive. An active add-in is registered and connected; an inactive add-in is registered but not currently connected.

    Tuesday, December 2, 2014 6:12 PM

All replies

  • Hello Ram,

    Your links are for XLL add-ins. Do you develop a VSTO based COM add-in?

    You need to install the add-in with the LoadBehavior windows registry key set to 8. Then, when you need to enable the add-in (i.e. load it), you can find it in the COMAddins collection (see the corresponding property of the Application class) and then set the Connect property. The Connect property returns True if the add-in is active; it returns False if the add-in is inactive. An active add-in is registered and connected; an inactive add-in is registered but not currently connected.

    Tuesday, December 2, 2014 6:12 PM
  • Since this is your addin, why not simply make your addin do whatever it is designed to do when you need it instead of disabling/enabling it?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, December 2, 2014 6:13 PM