TECH TIP: Printing Copies By default ReportBuilder processes requests to print copies internally, by sending multiple copies of each page to the printer. Some printers have the ability to receive a page and generate the copies on their own. This can speed performance, particularly on slower printers. The following example shows how to delegate the Full Article…
Search the Wiki
Default PrintToFile Dialog
Modify the RBuilder\Demos\EndUser\ReportExplorer example to do this as shown below: {—————————————————————————} { TmyEndUserSolution.LoadEndEvent } procedure TmyEndUserSolution.LoadEndEvent(Sender: TObject); begin ppReport1.OnPreviewFormCreate := PreviewFormCreateEvent; ppReport1.OnPrintDialogCreate := PrintDialogCreateEvent; end; {procedure, LoadEndEvent} {—————————————————————————} { TmyEndUserSolution.PrintDialogCreateEvent } procedure TmyEndUserSolution.PrintDialogCreateEvent(Sender: TObject); begin ppReport1.PrintDialog.AllowPrintToFile := True; ppReport1.PrintDialog.TextFileName := 'c:\myReport.txt'; ppReport1.PrintDialog.DeviceType := dtReportTextFile; end;
Default Printer Name and Paper
TECH TIP: Windows Default Printer Settings Default Printer Name You can get the name of the computers default printer by accessing ReportBuilder’s global printer list object – ppPrinters. uses ppPrintr; var lsPrinterName: String begin lsPrintername := ppPrinters.DefaultPrinterName; end; Default Printer Setup Place the following code in the OnClick event-handler of a button on a form. Full Article…