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

New Post: Problems with Outlook-addin 4 all Users, .net 3.5.

$
0
0
just for info:

overwrite COM register methods is a bit special because these methods was static. no chance to use virtual/overwrite.
to overwrite a static register method for a NO Tools Addin you need a special static method with an annotation in your addin.
something like this:

[RegisterFunction(RegisterMode.Replace)] // replace means, replace the base tools register method completly
public static void MyRegister(Type type, RegisterCall registerCall)
{
// create office registry keys
}

same for the unregister method:

[UnRegisterFunction(RegisterMode.CallBeforeAndAfter)]
public static void MyUnRegister(Type type, RegisterCall registerCall)
{
// remove office registry keys
}

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>