Wednesday, August 20, 2008

AddIn Part 1 : Prerequisites for Dev and Client system

There are certain prerequisites for the development and client system environment to have the functionalities of our Custom toolbars and AddIns.

Client System
Below are few things that can prevent this custom toolbar to appear in MS Word 2003.
1. Microsof .Net Framework 1.1
2. Should have .Net Programmability Support component for MS Office application installed or full install of MS Office 2003.
3. Macro Security settings in Word. Should be set to Medium. You can veryify that at Tools -> Macros -> Security...
4. Should not be in the list of 'Disabled items'. You can find this in Word 2003 by going to Help -> About Microsoft Word 2003.
5. LoadBehaviour for this Addin in Registry should be set to 2. You can verify that in registry for this Add-In at

HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\{AddinName}

There are different values you can set for this LoadBehaviour :

0 = Disconnect - Is not loaded.

1 = Connected - Is loaded.

2 = Bootload - Load on application startup.

8 = DemandLoad - Load only when requested by user.


Development Environment
1. Recommended that it has full install of MS Office (Word)
2. Macro Security settings in Word. Should be set to Medium.
Once you develop and to test that in the same system you need to verify the settings 4 & 5 above.
We also understand that dev system must have Visual Studio and .Net framework installed.

Note: Setting - 5 can be set while development of AddIn in visual studio and if that is so then that setting goes to client system so you don't need to set explicity there. More about this will be in the coming posts.

No comments: