Global onCreate event not called from a TppViewer
Hi,
I upgraded recently from delphi 6 to delphi 2006 and from RB9 to RB10.04.
With this new configuration some reports doesn't preview as requested. This
happens only with a preview in a TppViewer component. (The integrated
previewer works as before.) I was able to trace down the problem to the RAP
"global onCreate" event. This event doesn't seems to be called anymore in a
TppViewer. (If I copy he same RAP code copied from "Global onCreate" event
to the RAP "ReportBeforePrint" event the preview is working as requested)
How can I made the TppViewer call the "Global onCreate" events as the
integrated previewer does?
Thanks for your help
Thierry Van Schoote
I upgraded recently from delphi 6 to delphi 2006 and from RB9 to RB10.04.
With this new configuration some reports doesn't preview as requested. This
happens only with a preview in a TppViewer component. (The integrated
previewer works as before.) I was able to trace down the problem to the RAP
"global onCreate" event. This event doesn't seems to be called anymore in a
TppViewer. (If I copy he same RAP code copied from "Global onCreate" event
to the RAP "ReportBeforePrint" event the preview is working as requested)
How can I made the TppViewer call the "Global onCreate" events as the
integrated previewer does?
Thanks for your help
Thierry Van Schoote
This discussion has been closed.
Comments
Try adding a call to Report.InitializeParameters
Example:
if myReport.InitializeParameters then
myReport.PrintToDevices;
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
This works,