#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
Further Information
I wonder if I should not try to add the add-in.
The reason I thought I had to was due to the instructions: 7. Istruction: Build and test the COM add-in. To do this, follow these steps: a. On the Build menu, click Build MyCOMAddin. Note that building the COM add-in registers the .NET class with the COM interop. b. Start one of the Office applications that you selected as host applications for your add-in (for example, Microsoft Word or Microsoft Excel). c. After the add-in has started, the OnConnection event is fired, and you receive a message box. Well, I started some office applications and nothing happened. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to write in Word from Select query | lakhan.p | Word | 0 | 03-27-2009 07:25 AM |