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

Stop the reports printing process in the middle...

edited November 2003 in End User
Hi,
I have the following problem:
In my application I have a button which prints many reports at once.
Basically it just cycles through the list and prints all the reports in it.
Now I need to be able to stop the printing process after it started.
The problem is that I can stop my printing loop only after user presses
a button. But while the report is being printed the user cannot press any
other
buttons. So the only time when the user can catch the moment and press
it is between 2 reports printing which is obviously nearly impossible to do.
So the question is - what do I need to do to be able to press the
buttons while the reports are printing?

Thank you,
MB.

Comments

  • edited November 2003
    Hi Moisey,

    If the cancel dialog is either disabled or set to show Non-Modal, you should
    be able to cancel a report during generation by calling the Report.Cancel
    routine. You can set the Report.ShowCancelDialog to False or
    Report.ModalCancelDialog to False... Both ways will allow you to cancel a
    report in the middle of the printing process.

    --
    Best Regards,

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