C
Carlos
I managed to create a sample Add-in for Excel with a toolbar. This
was painful requiring me to try all kinds of tricks until finally
adding Office.dll to the Global Assembly Cache in my setup project did
the trick (I discovered this by catching all Exceptions in the
debugger and figuring out the rest from the online discussions).
Now I've added a bunch of my own code and the thing just wont load
(OnConnection is never reached). No exceptions are being thrown this
time. The registry entry
HKLM\Software\Microsoft\Office\Excel\Addins\myAddin\LoadBehavior stays
set to 3. There is a new registry query done on
HKLM\Software\Microsoft\Office\Excel\Addins\myAddin\FileName that
wasn't done with the sample Add-in. It fails to find this key
(NOTFOUND in regmon).
I've tried reloading the output DLL as an assembly (per
http://blogs.msdn.com/omars/archive/2004/04/28/122321.aspx), which
didn't help. I also read related discussions about setting the
Register property in the Setup project to vsdraCOM. However, this is
confusing since an primary output entry doesn't allow this value
(discussion: http://groups.google.com/groups?q=OnConnect+event+not+firing+vsdraCOM&ie=UTF-8&hl=en).
Help would be appreciated. It would also help if anyone can direct me
to a complete description of how this COM add-in loading occurs,
and/or perhaps some diagnostic techniques for figuring out what is
going on. It has been extremely difficult to approach a problem in
which "Hello World" doesn't even work at first out of the box.
Thanks,
Carlos
versions: .NET 1.1, OfficeXP, VisualStudio.NET 2003 (latest service
packs)
was painful requiring me to try all kinds of tricks until finally
adding Office.dll to the Global Assembly Cache in my setup project did
the trick (I discovered this by catching all Exceptions in the
debugger and figuring out the rest from the online discussions).
Now I've added a bunch of my own code and the thing just wont load
(OnConnection is never reached). No exceptions are being thrown this
time. The registry entry
HKLM\Software\Microsoft\Office\Excel\Addins\myAddin\LoadBehavior stays
set to 3. There is a new registry query done on
HKLM\Software\Microsoft\Office\Excel\Addins\myAddin\FileName that
wasn't done with the sample Add-in. It fails to find this key
(NOTFOUND in regmon).
I've tried reloading the output DLL as an assembly (per
http://blogs.msdn.com/omars/archive/2004/04/28/122321.aspx), which
didn't help. I also read related discussions about setting the
Register property in the Setup project to vsdraCOM. However, this is
confusing since an primary output entry doesn't allow this value
(discussion: http://groups.google.com/groups?q=OnConnect+event+not+firing+vsdraCOM&ie=UTF-8&hl=en).
Help would be appreciated. It would also help if anyone can direct me
to a complete description of how this COM add-in loading occurs,
and/or perhaps some diagnostic techniques for figuring out what is
going on. It has been extremely difficult to approach a problem in
which "Hello World" doesn't even work at first out of the box.
Thanks,
Carlos
versions: .NET 1.1, OfficeXP, VisualStudio.NET 2003 (latest service
packs)