Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print FastReport directly

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?

like image 897
ChuckO Avatar asked Feb 11 '26 18:02

ChuckO


2 Answers

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

frxReport1.PrepareReport;
frxReport1.Print;
like image 95
skamradt Avatar answered Feb 14 '26 15:02

skamradt


It's written in developper help file (Programmer Manual) Chapter "Building a composite report (batch printing)"

frxReport1.LoadFromFile('1.fr3');
frxReport1.PrepareReport;
frxReport1.LoadFromFile('2.fr3');
frxReport1.PrepareReport(False);
frxReport1.Print;
like image 20
Hugues Van Landeghem Avatar answered Feb 14 '26 14:02

Hugues Van Landeghem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!