Automating Word

K

Karen

I have an Access application that creates a certain report by opening Word,
using a defined template and pushing data from the database to populate
certain areas of the Word document.

It was developed using Access and Word 2003.

Access runs in a runtime environment so the user does not have to have
Access installed to run the application. If the user has Word 2003 then
everything is smooth. I have a new user who has Word 2002. He is getting
an automation error when he tries to start the process from Access. If he
opens Word and just leaves it open, there is no automation error.

I am using late binding because I thought it would help with different Word
versions.

So...........any ideas why the app is happy with only Word 2003 and not
previous versions?
 
C

Cindy M -WordMVP-

Hi Karen,

Impossible to say without knowing more. For example, does your code use
objects, properties or methods that were introduced in Word 2003?

Best would be for you to install Office XP on a test system and step through
your code in order to isolate the line(s) that are causing the error.
I have an Access application that creates a certain report by opening Word,
using a defined template and pushing data from the database to populate
certain areas of the Word document.

It was developed using Access and Word 2003.

Access runs in a runtime environment so the user does not have to have
Access installed to run the application. If the user has Word 2003 then
everything is smooth. I have a new user who has Word 2002. He is getting
an automation error when he tries to start the process from Access. If he
opens Word and just leaves it open, there is no automation error.

I am using late binding because I thought it would help with different Word
versions.

So...........any ideas why the app is happy with only Word 2003 and not
previous versions?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
P

pony

Hi Karen,

if your Access Application has to work with different Word-Versions you can
not use the following automation-Code (Early Binding)

dim wdaApp as Word.Application
set wdApp = New Word.Application

you have to use late binding

dim wdApp as object
set wdApp = CreateObject (Word.Application)

Its also important to delete the reference to the Word2003-Library in your
Access-Application.

regards

Gerlinde Kirse
 

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