访问Word 2003自动化 [英] Access Word 2003 Automation
问题描述
有没有人在MS Word和
Office 2003中的MS Access之间有办公室间自动化问题?
我最近安装了Office 2003一个新的文件夹,并已安装了旧的Office 2000和Office XP组件。
。即我已安装
word / access / excel 2k / xp / 2003。我试图通常访问2k到
字2k自动化但我得到错误自动化错误 ClassFactory
无法提供所请求的课程当在后期绑定时尝试创建Word
对象或在我尝试使用该对象时进行早期绑定。所以认为这是一个新的办公室安装问题,我试过Access 2003和Word 2003以及
同样的问题。顺便说一下,我在参考文献
中选择了Word 11.0对象库。
所以有人有任何想法吗?
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?
推荐答案
向我们展示您用来实例化Word的代码。
TC
"白马" < n2cheval @ [NotSo] hotmail.com>在消息中写道
news:CS ****************** @ news-server.bigpond.net.au ...
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...
有没有人在Office 2003中MS Word
和MS Access之间的办公室间自动化有任何问题?
我最近在一个新文件夹中安装了Office 2003并且已经离开<安装了旧办公室2000和Office XP组件。即我已安装
word / access / excel 2k / xp / 2003。我试图通常访问2k到word 2k自动化但我得到错误自动化错误 ClassFactory
无法提供所请求的类当在后期绑定时尝试创建Word
对象或在我尝试使用该对象时进行早期绑定。所以我认为这是一个新的办公室安装问题,我尝试使用Access 2003和Word 2003以及同样的问题。顺便说一下,我已经在
引用中选择了Word 11.0对象库。
所有人都有任何想法吗?
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?
当然,在这里。简单的锅炉板代码...
Dim oApp As Object
设置oApp = CreateObject(" Word.Application")
oApp.Visible = True
Sure, here it is. Simple boiler plate code...
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>> >>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>
" TC" < a@b.c.d>在消息新闻中写道:1071811700.757201@teuthos ...
向我们展示您用来实例化Word的代码。
TC
>
" Cheval" < n2cheval @ [NotSo] hotmail.com>在消息中写道
新闻:CS ****************** @ news-server.bigpond.net.au ...有没有人有任何问题在Office 2003中MS Word
和MS Access之间的办公室间自动化?
我最近在一个新的文件夹中安装了office 2003并离开了旧办公室2000和办公室已安装XP组件。即我已安装
word / access / excel 2k / xp / 2003。我试图通常访问2k到word 2k自动化但我得到错误自动化错误 ClassFactory
无法提供所请求的类当在后期绑定时尝试创建Word
对象或在我尝试使用该对象时进行早期绑定。所以我认为这是一个新的办公室安装问题,我尝试使用Access 2003和Word 2003以及同样的问题。顺便说一下,我已经在
引用中选择了Word 11.0对象库。
所有人都有任何想法吗?
"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" "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?
对我来说没问题。它是否与其他对象(例如Excel)失败,或只是Word?
也许您需要重新注册Word? (regsvr32)
HTH,
TC
" Cheval" < n2cheval @ [NotSo] hotmail.com>在消息中写道
新闻:Ia ***************** @ news-server.bigpond.net.au ...
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...
当然,在这里。简单的锅炉板代码...
Dim oApp As Object
设置oApp = CreateObject(" Word.Application")
oApp.Visible = True
Sure, here it is. Simple boiler plate code...
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> >>>> >>
" TC" < a@b.c.d>在消息新闻中写道:1071811700.757201@teuthos ...
向我们展示您用来实例化Word的代码。
TC
" Cheval" < n2cheval @ [NotSo] hotmail.com>在消息中写道
新闻:CS ****************** @ news-server.bigpond.net.au ...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>
"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...
已任何人在MS Word和Office 2003中的
Has anyone had any problems with inter-office automation between MS Word and
MS Access之间的办公室间自动化有任何问题吗?
我最近在一个新文件夹中安装了Office 2003并且已经离开了<安装了旧办公室2000和Office XP组件。即我已安装
word / access / excel 2k / xp / 2003。我试图通常访问2k
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
到word 2k自动化但我得到错误自动化错误 ClassFactory
无法提供所请求的类当在后期绑定时尝试创建
Word对象或在我尝试使用该对象时进行早期绑定。所以认为它是
是一个
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
新办公室安装问题我尝试使用Access 2003和Word 2003和
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
引用
中选择了Word 11.0对象库。
所有人都有任何想法吗?
both times.
So does anyone have any ideas?
这篇关于访问Word 2003自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!