Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word detection
Message
 
To
10/12/2003 19:41:00
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00857928
Message ID:
00857980
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform