General information
Category:
Reports & Report designer
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only