Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute microsoft word from a visual foxpro program
Message
 
 
À
26/07/2007 09:11:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01241684
Message ID:
01243728
Vues:
46
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform