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

DialogForm before preview and print...

edited June 2007 in End User
...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

Comments

  • edited June 2007
    Hi Frank,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Hi Nico,

    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



This discussion has been closed.