<< Click to Display Table of Contents >>
To instruct the PtrDevice to terminate the preview operation.
<oPtrDevice>:QuitPreview([lPrint]) → lSuccess (LOGIC)
Optional parameter which if TRUE instructs the PtrDevice to start the printing process after the preview is terminated.
This method is used primarily when the preview window is displayed modeless and you wish to terminate the preview process under program control. If the PtrDevice can terminate the preview process it returns TRUE, otherwise, it returns FALSE. The PtrDevice may not be able to terminate the preview process if it is executing a callback method. In this case, it will set oPtrDevice:Quit to TRUE instructing the callback function to immediately return.
// terminate the print preview process