Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect Word has been closed.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00488111
Message ID:
00488141
Vues:
11
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform