FastReport Direct Printing

I am using FastReport in Delphi Win32.

When FastReport is called, it is reviewed before you can print it.

The user sometimes needs to print a series of reports. This is PITA for preview, then print each one separately.

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

+3
source share
2 answers

Just call "PrepareReport" and then "Print." You do not need to show a preview.

frxReport1.PrepareReport;
frxReport1.Print;
+8
source

It is written in the development help file (Guide for the programmer) Chapter "Building a composite report (batch printing)"

frxReport1.LoadFromFile('1.fr3');
frxReport1.PrepareReport;
frxReport1.LoadFromFile('2.fr3');
frxReport1.PrepareReport(False);
frxReport1.Print;
+3

Source: https://habr.com/ru/post/1723415/


All Articles