Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: How do you get a com addin working?

$
0
0
Thanks for your reply Sebatian there are good examples of code but not much on how to register the addin etc

OK got it working now with a bit of fiddling this is what I did in case anyone else doesn't know and or is as slow as me :) :

I did a simple example to show it was working just a helloworld in the Addin_OnStartupComplete frunction.

1) Built the project
2) used regasm
regasm.exe c:\[My Path]\HelloWorld.dll /codebase
That does some magic and places an empty registry entry under the office app you made the addin for

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\HelloWorld.Addin

3) Fill in the empty registry entry with values I copied another addin that was working the important values seem to be
LoadBehavior Reg_DWord hex3 (3 = open at load)
Friendly Name REG_SZ ""
Description REG_SZ ""

Restart the app in my case outlook and it worked.

Viewing all articles
Browse latest Browse all 1741

Trending Articles