Discussion:
VB6 Interop.Word.dll
(too old to reply)
Budd
2005-09-05 14:18:55 UTC
Permalink
i have been wrote a program about vb.net that include "Interop.Word.dll"
but i need to change it to vb6 for some reason

But when i want to add this "Interop.Word.dll" to vb 6 reference
it have a error

How to add "Interop.Word.dll" to vb6 and work???
There is a version for vb6??
Can you tell me where can i download it???

thank you very much
Jonathan West
2005-09-05 18:18:47 UTC
Permalink
Post by Budd
i have been wrote a program about vb.net that include "Interop.Word.dll"
but i need to change it to vb6 for some reason
But when i want to add this "Interop.Word.dll" to vb 6 reference
it have a error
How to add "Interop.Word.dll" to vb6 and work???
There is a version for vb6??
Can you tell me where can i download it???
You have two problems with this.

1. VB6 and VB.NET aren't the same language, not even different versions of
the same language

2. VB6 and VB.NET don't use the same platform (i.e. libraries)

In short, this isn't going to work.

To see how to control Word from VB6, take a look at this article.

Control Word from Excel
http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm

Don't worry about the code sample being about Excel, much the same code will
work from VB6.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Budd
2005-09-06 16:43:40 UTC
Permalink
Would you mind give me some example about take a word document and find some
word in here and then replace it??

i am not so friendly with vb6, so i hope have some similar example for
reference

thank you so much
Post by Jonathan West
Post by Budd
i have been wrote a program about vb.net that include "Interop.Word.dll"
but i need to change it to vb6 for some reason
But when i want to add this "Interop.Word.dll" to vb 6 reference
it have a error
How to add "Interop.Word.dll" to vb6 and work???
There is a version for vb6??
Can you tell me where can i download it???
You have two problems with this.
1. VB6 and VB.NET aren't the same language, not even different versions of
the same language
2. VB6 and VB.NET don't use the same platform (i.e. libraries)
In short, this isn't going to work.
To see how to control Word from VB6, take a look at this article.
Control Word from Excel
http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm
Don't worry about the code sample being about Excel, much the same code
will work from VB6.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Loading...