mircrosoft word integration with dot net

I

insureallrisk

If we want to integrate word in dot net, we need to add
the com library reference in the project. Do you know how
I copy the dll onto my dot net framework without using the
add reference because I am not using the visual studio.

Is there any link that you know where I can get some hints?

Thanks.

Ray
 
D

Dino Chiesa [Microsoft]

Ray,

when you compile from the command line, if you are using VB.NET, you will
use a command like:
vbc.exe /target:library /out:MyLib.dll SourceModule1.vb SourceModule2.vb

what you need to do is to add a reference to the line. eg
vbc.exe /target:library /out:MyLib.dll /r:Interop.Office.Word.dll
SourceModule1.vb SourceModule2.vb

remember to substitute the actual name of the interop dll in your actual
command.

Now, you may ask, "When we are talking about COM, where does this interop
dll come from?" It comes from the tlbimp.exe utility, of course.

tlbimp.exe:
http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfTypeLibraryImporterTlbimpexe.asp


Also you may want to look at the more general article:
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingcomcomponentstonetframework.asp

-Dino
 

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