471,119 Members | 1,169 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

mircrosoft word integration with dot net

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
Nov 22 '05 #1
2 1834
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...rTlbimpexe.asp
Also you may want to look at the more general article:
http://msdn.microsoft.com/library/en...tframework.asp

-Dino

"in***********@hotmail.com" <an*******@discussions.microsoft.com> wrote in
message news:00****************************@phx.gbl...
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

Nov 22 '05 #2
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...rTlbimpexe.asp
Also you may want to look at the more general article:
http://msdn.microsoft.com/library/en...tframework.asp

-Dino

"in***********@hotmail.com" <an*******@discussions.microsoft.com> wrote in
message news:00****************************@phx.gbl...
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

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.