Reputation: 3746
I have a vb.net dll [DTP_Image.dll] at local : if i build by VS 2010, it load ok:
But i deploy dll on a other PCs by command:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" /codebase "C:\deploydll\DTP_Image.dll"
I can't found my dll in [Tool -> Reference] of Excel VBA.
How can deploy a DLL using RegAsm for COM Interop?
Upvotes: 0
Views: 469
Reputation: 1265
You have to export the types by calling regasm like this
regasm.exe {your.dll} /register /codebase /tlb
Upvotes: 1