PtrDevice:Quit Access

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Quit Access

Previous pageReturn to chapter overviewNext page
Type        Logic

Purpose

This access returns TRUE if the PtrDevice object is in the Print() or PrintPreview() mode and the user has selected the CANCEL button on the displayed dialog window.  You should regularly check this access while in the PtrDevice callback functions.  If this access returns TRUE, you should return immediately so the PtrDevice can terminate the print/preview operation in a timely manor.

Example

// Regularly check if the user pressed

// the Cancel button

 

method PrintPageBody(oPtrDevice) class MyReport

  do while ...

     if oPtrDevice:Quit

        // stop printing

        return PRINT_NOMORE

     endif

  enddo