GlobalOnCreate/Destroy isn't called
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com