D T
D T

Reputation: 3746

How can deploy a DLL using RegAsm for COM Interop?

I have a vb.net dll [DTP_Image.dll] at local : if i build by VS 2010, it load ok: enter image description here

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"

enter image description here

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

Answers (1)

user11909
user11909

Reputation: 1265

You have to export the types by calling regasm like this

regasm.exe {your.dll} /register /codebase /tlb

Upvotes: 1

Related Questions