Word Refrence in MDE

G

GeorgeMar

I have an application that has a reference to WORD. Some
of my clients are still running Office 97 and that creates
a problem.

I have resolved this on my own machine by changing my
reference for Word to MSWORD8.OLB.

I think that I have two options (or perhaps one):

1. To copy the reference MSWORD8.OLB to the Windows
directory on the local machine. I don't know if that is
legal or convenient.

2. If it is possible, perhaps to reload the reference
into the MDE for the current version of Word on the local
machine. Can the reference be reloaded in MDEs?

many thanks
george
 
T

TC

You are using so-called "early binduing". The solution is to use "late
binding" Do not have >any< references to Word in your db. Dim all your Word
objects "As Object" (not As Document or whatever). Provide explicit Const
defines for any Word constants that you use. Then, your code should work
fine, whatever version of Word that they have.

HTH,
TC
 
G

GeorgeMar

Thank you I'll try that.

kind regards
george
-----Original Message-----
You are using so-called "early binduing". The solution is to use "late
binding" Do not have >any< references to Word in your db. Dim all your Word
objects "As Object" (not As Document or whatever). Provide explicit Const
defines for any Word constants that you use. Then, your code should work
fine, whatever version of Word that they have.

HTH,
TC





.
 

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