Print FastReport directly

ChuckO picture ChuckO · Nov 19, 2009 · Viewed 7.2k times · Source

I'm using FastReport in Delphi Win32.

When a FastReport is called, it is previewed before you can print it.

The user sometimes needs to print a series of reports. It's a PITA to preview then print each one separately.

How can I queue the reports and send them directly to the default printer?

Answer

skamradt picture skamradt · Nov 20, 2009

Just call PrepareReport followed by Print. You don't have to show the preview.

frxReport1.PrepareReport;
frxReport1.Print;