Word Refrence in MDE

  • Thread starter Thread starter GeorgeMar
  • Start date Start date
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
 
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
 
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





.
 
Back
Top