Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Word automation
Message
De
10/12/2003 10:25:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00857378
Message ID:
00857662
Vues:
33
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform