How to print Fastreport directly without showing Print Dialog

Adi picture Adi · Jun 17, 2010 · Viewed 21.5k times · Source

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.

Answer

Den picture Den · Jun 22, 2010

You should set it after loading report.

Report.LoadFromFile('filename');
Report.PrepareReport;
Report.PrintOptions.ShowDialog := False;
Report.Print;