JVCL Help:TJvCustomPreviewControl.PrintRange

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Sends a range of pages to the IJvPrinter implementation.


Pascal

 procedurePrintRange(constAPrinter: IJvPrinter; StartPage: Integer; EndPage: Integer; Copies: Integer; Collate: Boolean);


Parameters

Parameters Description
const APrinter: IJvPrinter The IJvPrinter implementer. If this parameter is nil, no printing is performed.
StartPage: Integer The first page of the print job. 0-based.
EndPage: Integer The last page of the print job. 0-based.
Copies: Integer The number of copies to print
Collate: Boolean Set to true to collate (sort) the pages, false otherwise.


Description

Call PrintRange to send the preview pages to an IJvPrinter implementer with options. Depending on the implementer of IJvPrinter, the pages could be printed to any device like a printer but it could also be sent to other devices, like PDF files etc.
If you are using the TJvPreviewPrinter (it implements IJvPrinter), you do not need to call PrintRange. Instead, set the properties of TJvPreviewPrinter and call its Print method. Print will call PrintRange with the correct parameters, sending a pointer to itself in the APrinter parameter.


See Also

IJvPrinter


About

Notes

TJvCustomPreviewControl implements its own routines for StartPage, EndPage, Copies and Collate so the output device does not have to support this since it is handled internally.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page