tags:

views:

221

answers:

0

When Word Add-In adds some context menu it is expected to set CustomizationContext (otherwise Normal.dot is affected). There are multiple options to what can be a CustomizationContext. And as the following article states it can be Add-In itself - just scroll to the following list bullet:

A component object model (COM) add-in, also known as a dynamic link library (DLL) add-in.

It should be dead simple however I cannot find any example of how to do that. The way most of the examples go is messing with some temporary global template which is unnecessarily complicated if CustomizationContext can be set to the Add-In itself.

More details: Add-In itself is implemented in C# using VSTO 3.0 with VS2008; only Word 2007 is supported.

My apology if there is a duplicate question already (I could not find any), or if the issue is trivial, or if some stackoverflow guidelines are not followed.

Thanks.