473,847 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Word 2003 Automation

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" "ClassFacto ry
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?
Nov 12 '05 #1
12 5542
TC
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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" "ClassFacto ry
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?

Nov 12 '05 #2
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>

"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au... 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" "ClassFacto ry
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?


Nov 12 '05 #3
TC
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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" "ClassFacto ry
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?


Nov 12 '05 #4
Sorry about the delay.

Yeah I know, nothing extrordinary at all, just yet. Excel ran fine and I
tried the "repair" feature of Office 2003, yet that didn't help.

Which component would I try re-registrying?
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>

"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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" "ClassFacto ry
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?



Nov 12 '05 #5
I've even tried from the command line "C:\Program Files\Microsoft Office
2003\OFFICE11\W inWord.exe" /r
to re-register Word, yet still the same error...?

??????????????? ??????????????? ??????????????? ??????????????? ?????

"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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" "ClassFacto ry
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?



Nov 12 '05 #6
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:7x******** **********@news-server.bigpond. net.au...
Sorry about the delay.

Yeah I know, nothing extrordinary at all, just yet. Excel ran fine and I
tried the "repair" feature of Office 2003, yet that didn't help.

Which component would I try re-registrying?
Good question! To be honest, I am not really sure. Re-registering something
seems to be a general solution for various automation problems. Perhaps try
going to the command line, moving to the directory containing msword.exe (or
whatever the exe is called), and typing: "msword -unregserver" then
msword -regserver" or similar? (Certain executables will unregister &
re-register themselves if you give them suitable arguments, like those. You
may need to do some searching to confirm that those are the right arguments
for ms word.)

My guess is that it is something to do with having different versions of
word on the PC. Perhaps try calling a specified version? (eg.
Word.Applicatio n.8 for Word 97, Word.Applicatio n.9 for word 2k, etc.).

HTH,
TC

>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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"
"ClassFacto ry 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?



Nov 12 '05 #7
TC
Ok, just read this after posting my other reply. Are you sure that /r is the
right argument?

TC
"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:uU******** *********@news-server.bigpond. net.au...
I've even tried from the command line "C:\Program Files\Microsoft Office
2003\OFFICE11\W inWord.exe" /r
to re-register Word, yet still the same error...?

??????????????? ??????????????? ??????????????? ??????????????? ?????

"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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"
"ClassFacto ry 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?



Nov 12 '05 #8
Yeah. See the article
http://support.microsoft.com/default...NoWebContent=1
I've even tried re-registrering the word type library "regtlib.ex e
msword.olb" to no success... :(
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>
"TC" <a@b.c.d> wrote in message news:1072148911 .85202@teuthos. ..
Ok, just read this after posting my other reply. Are you sure that /r is the
right argument?

TC
"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:uU******** *********@news-server.bigpond. net.au...
I've even tried from the command line "C:\Program Files\Microsoft Office
2003\OFFICE11\W inWord.exe" /r
to re-register Word, yet still the same error...?

??????????????? ??????????????? ??????????????? ??????????????? ?????

"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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"
"ClassFacto ry 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?




Nov 12 '05 #9
ok. I tried that yet no luck. I'm out of ideas, so thanks again for your
help.
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1072148866 .849683@teuthos ...

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:7x******** **********@news-server.bigpond. net.au...
Sorry about the delay.

Yeah I know, nothing extrordinary at all, just yet. Excel ran fine and I
tried the "repair" feature of Office 2003, yet that didn't help.

Which component would I try re-registrying?
Good question! To be honest, I am not really sure. Re-registering something
seems to be a general solution for various automation problems. Perhaps try
going to the command line, moving to the directory containing msword.exe (or
whatever the exe is called), and typing: "msword -unregserver" then
msword -regserver" or similar? (Certain executables will unregister &
re-register themselves if you give them suitable arguments, like those. You
may need to do some searching to confirm that those are the right arguments
for ms word.)

My guess is that it is something to do with having different versions of
word on the PC. Perhaps try calling a specified version? (eg.
Word.Applicatio n.8 for Word 97, Word.Applicatio n.9 for word 2k, etc.).

HTH,
TC

>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071877362 .162009@teuthos ...
Looks ok to me. Does it fail with other objects (eg. Excel), or just Word?
Perhaps you need to re-register Word? (regsvr32)

HTH,
TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:Ia******** *********@news-server.bigpond. net.au...
Sure, here it is. Simple boiler plate code...

Dim oApp As Object

Set oApp = CreateObject("W ord.Application ")
oApp.Visible = True
>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>
"TC" <a@b.c.d> wrote in message news:1071811700 .757201@teuthos ...
Show us the code that you use to instantiate Word.

TC

"Cheval" <n2cheval@[NotSo]hotmail.com> wrote in message
news:CS******** **********@news-server.bigpond. net.au...
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"
"ClassFacto ry 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?




Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1963
by: M. C | last post by:
Hello, Since I installed Office 2003, I'm experiencing problems with an automation procedure in Access (created in Access 2000) that colonizes fields in a Word merge file. I keep getting a warning saying that it is not a merge file, even thought it has been predefined as such with all the fields. I relinked it to a query, but when I run the code, it won't reconize the file as a merge file. I redid the merge file using Office 2003 and...
64
5283
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. Any comments? Thanks
3
6135
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone done this? Does it seem possible? I followed the instructions from a sample on the Microsoft knowledge base but it only seems to work when creating a VB.NET Windows .EXE, not an VB.NET ASP app.
2
2038
by: Richard | last post by:
Hi Guys, Just a short note to ask for a little advice or a push in the right direction. I have recently been asked to transfer all our exsiting word documents over on the server to PDF format. The only snag being is that I don't know how to write the code that will open up a PDF file from within a VB6 application to access them. I suppose I am looking for some VB6 code that I can put behind a command button, which will when clicked bring...
5
1506
by: Jason James | last post by:
I all, I have a VB.Net app that words just fine when automating MS Word 2003, when Word is part of MS Office Professional edition (even with SP1 installed). However, if I install the app onto a machine wunning MS Word 2003 that is part of MS Office Small Business Edition 2003, it can not load and run the type library needed to perform the automation tasks? I get a system.io.filenotfound exception raised, saying that the specified...
4
3907
by: Access | last post by:
Okay I know this is probably not the best way to be doing things but I have an ancient application that was working fine until a end user got a new machine. The Access database is performing a mail merge. The Word Document is linked to a temp table in the Access database. It used to work fine in the past with DDE. Yes it opens another copy of the database but it doesn't really matter and it worked. So now with Access 2003 and Word...
1
1920
by: Ron | last post by:
Hi there, We have a web application written in C# that need to deal with MS word 2003. it works fine on developer's machine but when we deployed it on web server, we got error msg says "Access is denied". So i guess the code is OK but web server configuraion has to be changed. I got .Net framework 1.1 installed on webserver and deployed the webapplication. Then i installed Office 2003. and set DCOM(word) permission and web folder...
6
2411
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side automation. N.B. the environment is a totally enclosed intranet, all the client machines have WinXP, IE6 and Office Pro 2003 with all the latest SPs, and the IE security settings are sufficient to allow the Local Intranet Zone to instantiate...
22
2287
by: liya.tansky | last post by:
Hello, I'm developing an intranet (win XP, .NET 2, Visual Studio 2005, Microsoft.Office.Interop.Word.dll in references) and needed to implement find-replace in word doc before sending letter and it worked fine on my station. I've go it fine on my station, and it doesn't work at all on the web server. 1. What should be the configuration of the server? There is .net SDK 2 and I've installed the oxppia.exe there. And changed the...
0
9734
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10991
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10347
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7888
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7061
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4129
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3168
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.