Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print Fastreport directly without showing Print Dialog

I use Fastreport 4. I need to print directly to the printer without showing Print Dialog. I've unchecked the ShowDialog in the Print Options, but it keep showing a print dialog. Any help would be very appreciated.

like image 502
Adi Avatar asked Jun 17 '10 04:06

Adi


People also ask

How do I change the Print dialog box?

To display the Print dialog box, click (Down arrow) of the Print button or the Start Printing button in the Preview screen, and select Check Settings and Print....

What is Print dialog?

The Print dialog box lets the user select options for a particular print job. For example, the user can specify the printer to use, the range of pages to print, and the number of copies.

Where is the Print dialogue?

The Print dialog box appears when you click the Print button or select File > Print from either the Design tab or the Address Book tab. Depending on the area of DAZzle that you access the Print dialog box from, the Print dialog box displays different tabs: Postage tab: View or set postage and package settings.


1 Answers

You should set it after loading report.

Report.LoadFromFile('filename');
Report.PrepareReport;
Report.PrintOptions.ShowDialog := False;
Report.Print;
like image 68
Den Avatar answered Sep 20 '22 17:09

Den