Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Global onCreate event not called from a TppViewer

edited October 2006 in Devices
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

Comments

  • edited October 2006

    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
  • edited October 2006
    Thanks,

    This works,


This discussion has been closed.