Access Word 2003 Automation

C

Cheval

Has anyone had any problems with inter-office automation between MS Word and
MS Access in Office 2003?

I have recently installed office 2003 in a new folder and have left the
older office 2000 and office XP components installed. ie I have
word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to
word 2k automation yet I get the error "Automation Error" "ClassFactory
cannot supply requested class" when on late binding try to create the Word
object or on early binding when I try to use the object. So thinking it is a
new office install problem I tried with Access 2003 and Word 2003 and the
same problem. BTW I have selected Word 11.0 Object Library in the references
both times.

So does anyone have any ideas?
 
A

Arvin Meyer

Cheval said:
Has anyone had any problems with inter-office automation between MS Word and
MS Access in Office 2003?

I have recently installed office 2003 in a new folder and have left the
older office 2000 and office XP components installed. ie I have
word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to
word 2k automation yet I get the error "Automation Error" "ClassFactory
cannot supply requested class" when on late binding try to create the Word
object or on early binding when I try to use the object. So thinking it is a
new office install problem I tried with Access 2003 and Word 2003 and the
same problem. BTW I have selected Word 11.0 Object Library in the references
both times.

So does anyone have any ideas?

My automation code under similar circumstances (2002 > 2003) has worked OK,
but I can see a potential for problems. I can't speak for Word, but the
ClassID (in the registry) for Access 2000, 2002, and 2003 is the same, so
the only way to tell what's working is to actually run the code and see
which program is currently the active registered application. Try selecting
Word 9.0 as a reference.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
C

Cheval

The wierd thing is that under the references and all the versions of access
(2000,XP,2003), all I have available is version 11. eg. Word 11.0, Excel
11.0, etc.

I tried opening Word 2003 and then Access 2003 to make them both the active
versions and I still get the same error...?

Cheval said:
Has anyone had any problems with inter-office automation between MS Word and
MS Access in Office 2003?

I have recently installed office 2003 in a new folder and have left the
older office 2000 and office XP components installed. ie I have
word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to
word 2k automation yet I get the error "Automation Error" "ClassFactory
cannot supply requested class" when on late binding try to create the Word
object or on early binding when I try to use the object. So thinking it is a
new office install problem I tried with Access 2003 and Word 2003 and the
same problem. BTW I have selected Word 11.0 Object Library in the references
both times.

So does anyone have any ideas?

My automation code under similar circumstances (2002 > 2003) has worked OK,
but I can see a potential for problems. I can't speak for Word, but the
ClassID (in the registry) for Access 2000, 2002, and 2003 is the same, so
the only way to tell what's working is to actually run the code and see
which program is currently the active registered application. Try selecting
Word 9.0 as a reference.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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