Print dialog events not firing
Hi
We're trying to run some code on
OnPrintDialogCreate
and
OnPrintDialogClose
To determine whether cancel was clicked on the print dialog.
But neither of these events is firing. We are using the latest RB v21. Is there a setting that we've enabled by accident that would prevent these events from firing?
Many thanks
We're trying to run some code on
OnPrintDialogCreate
and
OnPrintDialogClose
To determine whether cancel was clicked on the print dialog.
But neither of these events is firing. We are using the latest RB v21. Is there a setting that we've enabled by accident that would prevent these events from firing?
Many thanks
Comments
After a quick test (with Delphi and RAP code) the PrintDialog events appear to be firing correctly.
If you are loading templates, be aware that you will need to assign the events after the template is loaded or the reference can be overwritten.
Another solution is to keep the event code local to the report definition using RAP.
http://rbwiki.digital-metaphors.com/design/templates/how-to-troubleshoot-lost-event-handlers/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your help