Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make Word visible
Message
De
03/10/2011 06:35:58
 
 
À
02/10/2011 15:11:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01525400
Message ID:
01525445
Vues:
41
1. How do I disable the user from X'ing out of the main Word window? She can X out of the document, but not Word.

You have to create a handler class that implements Word's ApplicationEvents2 Interface and write some code in the DocumentBeforeClose method of that class to stop the document from closing. Then you use VFP's EVENTHANDLER() function to bind the Word event to the handler class's methods.There may be an explanation and some sample code on how to do this in my "Event Handling in Visual FoxPro" session which you will find at http://www.tightlinecomputers.com/Downloads.htm
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform