The Cancel method cancels a report from a report event.
• report – A report object.
The Cancel method stops the report from printing. If canceled from a report band event, data from that band will print before the report stops. If the report prints to the screen, the Cancel method automatically closes the Screen Output window. The End event occurs after you cancel a report using the Cancel method.