Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to call a COM Add-in that is already installed in excel from my C# excel add-in. It is a third party add-in so I can't make any changes to the code.

I need to access the methods in the Add-in and get the value they return.

I know in VBA you can just call a COM Add-in and use it's methods, so is there a C# equivalent of that.

P.S I've tried using COM Classes and COM Wrappers, but it either isn't working or I'm not using them properly.

What I have tried:

I've tried using the DLL to call the methods but whichever way I call it, it returns an exception saying it can't find the xxx.cs class or that it can't find an entry point. I've also tried using an invoke method,but that doesn't work either.
Posted
Updated 6-Oct-16 9:08am

 
Share this answer
 
I'd suggest to start here: Calling Code in VSTO Add-ins from Other Office Solutions[^] - Accessing Objects from Non-VBA Solutions part.
 
Share this answer
 
Comments
Nolii 11-Oct-16 5:52am    
I checked the link out, but it's a third party add-in so I can't change the code to expose the methods.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900