Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Print a selection on the non-default printer with QuickReport
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Several people have experienced problems with printing a QuickReport to a non-default printer.
Another issue is printing of selected pages.
QuSoft saw this and added a function PrinterSetup() which works properly with their model (other than my own TPrintDialog instances).
The following code shows how to print the current page or selected pages.
 | |  | | theReport : TQuickRep;
ReportPreview: TQRPreview;
begin
with theReport do
begin
PrinterSettings.FirstPage := theReport.PageNumber;
PrinterSettings.LastPage := theReport.PageNumber;
ReportPreview.QRPRinter.Print;
end;
end;
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|