473,699 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# COM addin - please help

Hello,
I wrote a simple addin for Excel using C#. It works great on my development
machine.
However, when I installed the package to another machine, the COM addin does
not show when open excel application.
Question: What do I need to do to resolve this problem?
Thanks in advance!

DH
Oct 19 '06 #1
3 1323
If you're written it with a COM wrapper then do you need to register it
first with regsvr32.exe?

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/

news.microsoft. com wrote:
Hello,
I wrote a simple addin for Excel using C#. It works great on my development
machine.
However, when I installed the package to another machine, the COM addin does
not show when open excel application.
Question: What do I need to do to resolve this problem?
Thanks in advance!

DH
Oct 19 '06 #2
I created the project using the VS2003 wizard. It also create the
'installation' package.
I assume the install will handle those registration when running setup on
the target machine.
Now, I try regsvr32, it results error of 'No entry point'. But I used regasm
it registered fine.
Again, It still does not work on the target machine.
(The addin project is to add a button to the Excel toolbar)

Any other advice?

Thanks

DH
"Chris Fulstow" <ch**********@h otmail.comwrote in message
news:11******** **************@ f16g2000cwb.goo glegroups.com.. .
If you're written it with a COM wrapper then do you need to register it
first with regsvr32.exe?

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/

news.microsoft. com wrote:
>Hello,
I wrote a simple addin for Excel using C#. It works great on my
development
machine.
However, when I installed the package to another machine, the COM addin
does
not show when open excel application.
Question: What do I need to do to resolve this problem?
Thanks in advance!

DH

Oct 19 '06 #3
Installation project generated by VS only registers your add-in as a COM
object. It does not add necessary entries to the Excel's registry. On your
development machine that was done by VS wizard rather than by setup project:
that is why your add-in works on your dev PC.

"dhuynh" <dh*********@ya hoo.comwrote in message
news:OQ******** ******@TK2MSFTN GP04.phx.gbl...
>I created the project using the VS2003 wizard. It also create the
'installatio n' package.
I assume the install will handle those registration when running setup on
the target machine.
Now, I try regsvr32, it results error of 'No entry point'. But I used
regasm it registered fine.
Again, It still does not work on the target machine.
(The addin project is to add a button to the Excel toolbar)

Any other advice?

Thanks

DH
"Chris Fulstow" <ch**********@h otmail.comwrote in message
news:11******** **************@ f16g2000cwb.goo glegroups.com.. .
>If you're written it with a COM wrapper then do you need to register it
first with regsvr32.exe?

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/

news.microsoft .com wrote:
>>Hello,
I wrote a simple addin for Excel using C#. It works great on my
development
machine.
However, when I installed the package to another machine, the COM addin
does
not show when open excel application.
Question: What do I need to do to resolve this problem?
Thanks in advance!

DH


Oct 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3724
by: Eric | last post by:
I would like to Write an Excel Addin like the Outlook Addin in the COM samples but i am stuck since after examining the windows registry, there is no Excel addin Key. The application would utilise interface IDTExtensibility2 to create buttons and menus on excel which will be hooked up to perform certain functions. How can i go about doing this?
8
3028
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and whether it was docked or not. I added the following code to my "OnConnection" function but it fails with an error, "Run-time exception thrown : System.IO.IOException - Bad file name or number." With applicationObject.CommandBars("SampleToolbar")
0
899
by: Robert | last post by:
I want to disable Class view by an Addin VS.net 2003 How do I do that... In VS 6 there was an registry entry that could disable the class view... I know how to disable the class view for the VS7 manually but not programmatically ??? Please I nees help.. Where can I find load of info about Addin developement GUI stuff and other practical stuff.. The info about creating an ADDIN is quite difficult and hard to find..
3
1508
by: Nadav | last post by:
Hi, I am writing a .NET (C#) Addin, I Wonder... how can I cause my addin to react to key strokes ( e.g. pressing F1 ). ThanX Nadav.
0
879
by: emmett | last post by:
i've created a COM addin for several office applications (word,excel,ppt) and have put a commandbarbutton into each. Clicking this button calls a form. This form acts as a user interface to the current documents document properties so that the user only need click onto menuitems in several context menu boxes, selected a couple of keywords and they are set as properties (builtin and custom) for that document. The only problem is that I...
0
2250
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way (using the python interpreter). But now, I want other poeple to use it to I want to freeze it for windows using py2exe and py2exe is giving me a headache. First, I cannot seem to be able to register my addin with the resulting executable. I've...
7
2609
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints are hit in my source code. The Addin isn't being loaded. If I create a new Addin program from scratch, e.g. AddIn1, it loads up fine from Outlook. I archived my existing code, cleared out the registry and recreated a brand new Addin project with...
6
8771
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is different for every Menu Item and Toolbar buton to determine which menu or button is being clicked and to...
1
1509
by: Rainer Queck | last post by:
Hello NG, I moved my AddIn Project from one machine to a other. This AddIn is a AddIn for Visual Studio 2005.
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8884
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7751
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.