View Single Post
 
Old 06-15-2009, 04:04 AM
patc4 patc4 is offline Windows XP Office 2003
Novice
 
Join Date: Jun 2009
Posts: 3
patc4 is on a distinguished road
Default I am trying to discover how to write a comm. Add-in

I have windows XP and office 2007 on my computer and windows xp and office 2003 at work. I have Visual studio 2005( on both computers and 2008 (on mycomputer).

I have seen a number of how-to-do articles and most refer to older version of office and use VB6 so I get somewhat lost.
I have now found Article ID: 302896
I have followed this using a computer with VB-2005 and Office 2003.
In VS 2005.
I followed the instructions without problems until build and then I got errors:
CommandBarButton CommandBar CommandBars not defined
MsoButtonStyle not declared.
I did a search and found I needed to add Imports Microsoft.Office.Core with the others.
Build: 1 succeeded or up-to-date, 0 failed, 1 skipped
I then built the associated setup project and go no errors, then ran the setup.exe it and it ran OK .
The Office: Word 2003
Try to add the com Add-in and word says ‘is not a valid a valid office addin’.
I have only 3 of these dll's located on the computer, 2 generated by VB-2005 and one by set up, I tried to add all 3 versions and got the same result.
How do I get this simple add in to work?
I amended the properties for .Net Framework to ‘allow later version’ to true.
Any help please?
Reply With Quote