Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
In VFP 9 SP2, there is a method in the ReportListener called OnPreviewClose(). It gets called when the preview window is closed and it receives a logical parameter of .t. if the user Printed.
Yes, Cathy, that's good advice for SP1, but incomplete for SP2:
In SP2, that method will not be called if the preview has been issued NOWAIT. In that case, you will need to monitor Listener.PrintCachedPages() (new reportlistener method in SP2, does exactly what you think.)
Basically, if NOWAIT, it's .PrintCachedPages(), otherwise, .OnPreviewClose().
It would have been nice to just say "it's always .PrintCachedPages()" but the RTM/SP1 ReportPreview API says you use .OnPreviewClose() and of course it is backward compatible in SP2.
That's how it goes.
- Colin
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