Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement