jmac82

I have an Excel 200 Add-in created in VS 2005 / VSTO 2005 SE
I use the DataLinks dialog to edit a connectionstring. This works great in debug,
but after the add-in is deployed, and i run the setup application, (on my development machine also) the add-in starts as expected, but when i click the button that is supposed to display the DataLinks dialog, nothing happens. No error or exception. Just like the button doesn't have an eventhadler.
During install the Interop.MSDASC.dll is installed to the TargetDir..

I used the same functionality, actually the exact same function that displays the dialog in another windows application, here the dialog shows as expected after i have installed it.


Re: Visual Studio Tools for Office DataLinks dialog doesn't work when add-in is installed

Cindy Meister

I assume you can tell that the Add-in is actually being loaded The button is something your Add-in creates when it loads

If you're sure the Add-in is being loaded, then my guess would be that you're not declaring the button (and possibly CommandBar) objects at the class level, so they're going out of scope and being garbage collected.