CancelPrintReport (cancel report printing)

Top  Previous  Next

 

CancelPrintReport, VIRTUAL

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