User Tools

Site Tools


cancelprintreport_cancel_report_printing_.htm
Navigation:  ABC Library Reference > ReportManager Class > ReportManager Methods >====== CancelPrintReport (cancel report printing) ====== Previous pageReturn to chapter overviewNext page

CancelPrintReport, VIRTUAL

blk2blue.jpg

The CancelPrintReport method is a virtual method that allows you to write any clean up code to execute when canceling in a Print Preview window.

Member of: ReportManager

Implementation:

The AskPreview method CancelPrintReport method. The method is empty, but generates an embed point to allow custom code to be implemented.

Example:

ReportManager.AskPreview PROCEDURE

 CODE

 IF NOT SELF.Report &= NULL AND SELF.Response = RequestCompleted

   IF SELF.EndReport()=Level:Benign

     IF NOT SELF.Preview &= NULL

       IF CHOOSE (NOT SELF.SkipPreview, SELF.Preview.Display(SELF.Zoom), TRUE)

         SELF.PrintReport()

       ELSE

         SELF.CancelPrintReport()

       END

       FREE(SELF.Preview.ImageQueue)

     ELSE

       SELF.PrintReport()

       FREE(SELF.PreviewQueue)

     END

   ELSIF NOT SELF.Preview &= NULL

     FREE(SELF.Preview.ImageQueue)

   ELSE

     FREE(SELF.PreviewQueue)

   END

 END

cancelprintreport_cancel_report_printing_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1