Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Word automation
Message
From
10/12/2003 10:25:08
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00857378
Message ID:
00857662
Views:
34
Rick,

There is no difference in service packs for Win2000 - one machine has office 97 and the other has office 2000.

I'm working at the command line - nothing else involved -

oWord = CREATEOBJECT("Word.application") works as does
oDocument = GETOBJECT("C:\My Documents\I247a.doc") works also or at least to the point of making it the document within Word to edit

because when I issue:

oWord.Application.visible = .T. up comes Word with the document I247a as the active document.

Also works:

oWord.Windowstate = 0 so word reacts to at least manipulating the application itself but as soon as I try:

? oDocument.name

or even

? oWord.activeDocument.name

I get the error "OLE error code x800a8029: Unknown COM status code"

It appears that it will let me manipulate the Word Application itself but not act on any document that is opened in Word.


I have no anti-virus app currently operating on either system.

HTH's with any diagnosis

Thanks for any help you can provide,

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform