Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Office > Office

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-15-2009, 08:04 AM
patc4 patc4 is offline Windows XP Office 2003 (Version 11.0)
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
  #2  
Old 06-16-2009, 03:11 PM
patc4 patc4 is offline Windows XP Office 2003 (Version 11.0)
Novice
 
Join Date: Jun 2009
Posts: 3
patc4 is on a distinguished road
Default 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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write in Word from Select query lakhan.p Word 0 03-27-2009 11:25 AM


All times are GMT -4. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.