C# COM addin - please help

N

news.microsoft.com

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
 
C

Chris Fulstow

If you're written it with a COM wrapper then do you need to register it
first with regsvr32.exe?
 
D

dhuynh

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
 
E

Eugene Prystupa

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top