Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2009, 04:04 AM
patc4 patc4 is offline I am trying to discover how to write a comm. Add-in Windows XP I am trying to discover how to write a comm. Add-in Office 2003
Novice
I am trying to discover how to write a comm. Add-in
 
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, 11:11 AM
patc4 patc4 is offline I am trying to discover how to write a comm. Add-in Windows XP I am trying to discover how to write a comm. Add-in Office 2003
Novice
I am trying to discover how to write a comm. Add-in
 
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

Thread Tools
Display Modes


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

Other Forums: Access Forums

All times are GMT -7. The time now is 03:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft