Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect Word has been closed.
Message
From
23/03/2001 13:28:39
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00488111
Message ID:
00488141
Views:
9
Hi!

Use following:

Try to FOPEN("DOCFILE.DOC",12)
if failed
sleep(100)
repeat
else
finished
endif

sleep is API function:
DECLARE integer Sleep in Win32API integer
>In my app, I create an object reference to Word, insert some text and data and then make Word visible for the user to complete final editing and formating.
>
>I want to do 2 things here.
>
>1. I don't want the user to be able to return to my app until they finish and close Word.
>
>2. I need to know how to detect when Word is closed. I've discovered that the object reference remains even after closing Word.
>
>Any help appreciated. TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform