DelphiFAQ Home Search:
General :: Programming :: Delphi :: Database
Database development with Delphi. Includes issues with BDE, ADO and InterBase.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Print a selection on the non-default printer with QuickReport

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
   // print one page..
   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!
Generated 12:01:28 on Jun 25, 2018