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

GlobalOnCreate

edited May 2006 in RAP
After doing the update to RB 10.03, the GlobalOnCreate does not seem to
be firing in our custom previewer. If I go into design mode, it will
fire. Has anyone else hit this issue?

Thanks,
Nick

Comments

  • edited May 2006

    - For RB 10.03, the GlobalOnCreate is fired 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.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.