|
-
Oct 11th, 2000, 11:35 AM
#1
Thread Starter
Lively Member
In my program, when the user selects a particular menuitem, Word opens up and display the file. Under project,reference I checked Microsoft Word 9.0 object library and it runs in Word 2000. My friend has an older version of Word, and therefore it crashes when he selects that menuitem when running the exe. How can I go to his project, reference and check MS Word 8.0 object library so he can run the exe? Thanks.
-
Oct 11th, 2000, 01:14 PM
#2
Junior Member
I have the same problem whith a friend. I solve it using the create object.
Instead:
Dim wdDoc as Word.Document
...
Set wdDoc = New Word.Document
I use:
Dim wdDoc as Object
...
Set wdDoc=CreateObject("Word.Document")
And do not mark the word object library. This method take a bit more of resources but this works whith any version of Word, only be aware whith the commands you use, there are some that works only whit some versions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|