Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Save in Word?
Message
De
18/03/2007 15:43:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01198988
Message ID:
01205251
Vues:
16
The natural tendency is for the user to print the document manually and then close Word. If they do that, I've lost the refrence and the printing can't take place. I'd also prefer that the document not be saved, or at least that I be able to control the name so that they don't overwrite the template. Any suggestions?

Take a look at the EVENTHANDLER() function and the IMPLEMENTS clause of the DEFINE CLASS command.

If you do not want to allow the use to close word, just IMPLEMENT the applicationEvents2 Interface in your handler class, set some flags, and put some code in the DocumentBeforeClose method.

I have sample on the tools and utilities page of my web site - look for the Office Automation with VFP session and download the white paper and code samples.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform