Event Report.BeforePrint/Report.Afterprint
Hi!
I detected when I start a report in the preview the BeforePrint is
fired, then when I click on the Print-Button in the preview the
BeforePrint is not fired but the AfterPrint is fired.
Than when I click again the print-Button in the preview the BeforePrint
is NOT fired.
Thats bad, because I initialaze some things in the RAP-BeforePrint and
this should be done on EVERY print.
Is this by design or is there something wrong?
I am using RB Enterprise 16.01 Build 378 with Delphi 7
Gruß aus den Bergen
Günter
I detected when I start a report in the preview the BeforePrint is
fired, then when I click on the Print-Button in the preview the
BeforePrint is not fired but the AfterPrint is fired.
Than when I click again the print-Button in the preview the BeforePrint
is NOT fired.
Thats bad, because I initialaze some things in the RAP-BeforePrint and
this should be done on EVERY print.
Is this by design or is there something wrong?
I am using RB Enterprise 16.01 Build 378 with Delphi 7
Gruß aus den Bergen
Günter
This discussion has been closed.
Comments
I researched this and created a patch for RB 16.02. For the screen preview,
the RAP AfterPrint usually fires when the preview form is closed or when
leaving the Designer Preview page. However, there is also a requirement that
for every BeforePrint the AfterPrint is called. With the patch, when
printing from preview the RAP AfterPrint will fire, then the BeforePrint for
the print to printer/file and then the AfterPrint when done printing to
printer/file.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com