Dialog displays twice

edited 10:22PM in FastReport 4.0
My report has a dialog. When I call PrepareReport, the dialog is displayed. Then I call ShowReport and the dialog is displayed again. How do I fix it so that the first display is suppressed ?

Comments

  • gpigpi
    edited 10:22PM
    Use ShowPreparedReport instead of ShowReport
  • edited 10:22PM
    < Use ShowPreparedReport instead of ShowReport >

    Thanks. But isn't it possible to suppress the first dialog, so that the second one shows against the background of the report form ?
  • gpigpi
    edited 10:22PM
    wrote:
    But isn't it possible to suppress the first dialog, so that the second one shows against the background of the report form ?
    I don't understand what you want. Attach small demo project with your problem
  • edited 10:22PM
    < Attach small demo project with your problem >

    Attached. OK ?

  • gpigpi
    edited 10:22PM
    ShowReport = PrepareReport + ShowPreparedReport
  • edited June 2011
    < ShowReport = PrepareReport + ShowPreparedReport >

    Understood, but it doesn't answer my question. To me "PrepareReport" suggests unseen preparation, and should not include the display of a dialog. I want to suppress the display during PrepareReport and only show it in ShowReport

Leave a Comment