DialogForm before preview and print...
...now I try a long time to implement custom dialogs to filter data.
I use the TppViewer to preview the report.
I write code in the global OnCreate to show my DialogForm.
But the event OnCreate isn' t fired.
If I open the designer and there the preview tab, then the event is fired.
How to show my own DialogForm printing on a TppViewer?
Thanks, Frank
I use the TppViewer to preview the report.
I write code in the global OnCreate to show my DialogForm.
But the event OnCreate isn' t fired.
If I open the designer and there the preview tab, then the event is fired.
How to show my own DialogForm printing on a TppViewer?
Thanks, Frank
This discussion has been closed.
Comments
Which version of ReportBuilder and Delphi are you using? If you are using a
version later than RB 10.03, you need to be sure you call
InitializeParameters before making a call to PrintToDevices. Something like
the following...
if Report.InitializeParameters then
Report.PrintToDevices;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thanks for fast answer and excuse me for late reaction.
I use the latest version of ReportBuilder (10.06).
The global event OnCreate is' nt fired. A call of
Report.InitializeParameters helps only the first time.
But I moved my code to OnInitializeParameters, an this works as expected.
Report.InitializeParameters calls my dialog form and the parameter aCancel
is usefull for interaction...
Thanks
Frank Reim