Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word detection
Message
 
À
10/12/2003 19:41:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00857928
Message ID:
00857980
Vues:
29
>Hello:
>
>I am in the middle of a project and I call a MSWord document through the VFP using the way of Automation command. The problem is I need to know when a document remain opened while I execute other commands. Is there a way to know when a document is opened. I open many document but so I can't just close the application (Word Application).
>
>Thanks
>
>Efrain
*Maybe:
?type(oWord.ActiveDocument)==[O]

* or - to see if Word is running
oldOnError=on('error')
on Error oWord=.NULL.
oWord=getobject(,'Word.Application')
on error &oldOnError
if isnull(oWord)
   * Word is not tasking
Endif
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform