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

ShowCancelDialog not working?

edited April 2003 in General
Hi! (RBuilder pro 7.02 and Delphi 7)

I have one BIG ppReport on my form that makes long time to print/preview, so
I'd like to show the "cancel dialog", but even if I enable it in the Object
Inspector or by code (ShowCancelDialog := true;) it does't show.

What's the problem?

Comments

  • edited April 2003
    Santy,

    I am unable to recreate the issue on my machine. Please send a demo of the
    problem to support@digital-metaphors.com and I'll take a look at it for you.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2003
    Hi!

    Well, I have noticed that the problem only appears when previewing the
    report (not printing)
    Is it possible to show the Cancel Dialog when previewing the report?

    Before printing, I show the report in a TppViewer, but some reports are too
    long, so it takes long time to show. I would like to show the Cancel Dialog
    before showing the report preview. Is it possible?

    Thanks!


  • edited April 2003
    Santy,

    It is not possible to cancel a request to the database once it has already
    been made. The best way to control this would be to show a dialog before
    the report previews that explains how long the report will take to load and
    gives the user an option to partially print or fully print the report (using
    autosearch fields and page limits). You should be able to create a cancel
    form and use it to cancel the report generation once it has started by
    having it load in the OnStartFirstPass event and close in the OnEndFirstPass
    event. Be sure you have the SaveAsTemplate property set to False.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.