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?
- 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
Comments
- 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