Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word automation: how to wait for user to close MSWord ?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018391
Message ID:
01018393
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform