ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   C# dll use in Excel (https://www.excelbanter.com/excel-programming/427417-c-dll-use-excel.html)

ewm

C# dll use in Excel
 
How do I get my C# dll to work with Excel?
I developed a dll using C#. Everything works fine on the development
machine. How do I get this to work on other machines where VS is not
installed. My dll has a strong name, I have registered it using regasm
assemblyname /tlb, and I have installed in the GAC. If I browse and locate
the .tlb file and set a reference to it, then I can see it in object explorer
complete with exposed functions. It shows in intellisense if I set a
reference. The problem is it errors out when I try to instantiate the object.
The error is the system cannot find the file specified. I can post the code
if necessary; however, I am sure the code is fine because this works on the
development machine. I just can't get it exposed/registered properly on the
test machine that does not have VS installed. Thanks in advance for your
help.


All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com