Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word automation: how to wait for user to close MSWord ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01018391
Message ID:
01018393
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>I have a VFP routine that creates MSWord documents and then does one of the following
>
>- saves the doc
>- saves and prints the doc
>- prints and emails the doc
>- saves, prints, and emails the doc
>
>I would like to modify the process to let the user edit the created document before selecting one of the options above. Is there a way to suspend VFP processing while the doc is being editing? And then return control to the program after the user is done editing?
........

** Here you want to Stop VFP

DO WHILE TYPE("oWord.Name") == "C" .AND.;
         NOT ISNULL(oWord)
   DOEVENTS FORCE
ENDDO
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform