Stop the reports printing process in the middle...
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com