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

GlobalOnCreate/Destroy isn't called

edited June 2007 in RAP
The global OnCreate and OnDestroy isn't called anymore in the new 10.0
version.

I use it to init some important data, and now all these reports didn't
execute correct, because of the GlobalOnCreate isn't called

Is there anywhere a setting, so that these events will be called again?

regards
andi

Comments

  • edited June 2007
    Hi Andi,

    The GlobalOnCreate is now called from the Report.InitializeParameters
    method. This change was made because it was firing too late (after the
    autosearch dialog had been displayed). It needs to fire before any other
    events.

    - The Report.Print method internally calls Report.InitializeParameters as
    the first line of code.

    - The DesignPreview has this code

    if FReport.InitializeParameters then
    FReport.PrintToDevices;

    - If you are calling PrintToDevices, add a line of code like the one shown
    above. That should fix it.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.