Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute microsoft word from a visual foxpro program
Message
 
 
To
26/07/2007 09:11:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01241684
Message ID:
01243728
Views:
44
>I downloaded the file you suggested and looked at the doc file. I could not find the answer to my question.
>
>Do I need to explicitly close the word automation in my program after the user closes word and if so how do I know when to close it?
>

In order to detect when Word was closed, you need to use Eventhandler. It should be covered in this article.

You may have a form's property for your word object, once you know it was closed by the user, you may set it to NULL.

If you close your form and the Word was not yet closed by the user, you may close it using Close(0) method and also you would need to set form's object reference to NULL.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform