Board index » delphi » Quickreport 4: TqrCompositeReport
Roberto Nicchi
Delphi Developer |
Quickreport 4: TqrCompositeReport2008-07-29 10:50:40 PM delphi207 two reports (report1 and report2) printed as a composite report (comp_report) In QuickReport 3 i was able to do: comp_report.printersettings.printerindex:=printer.printerindex; comp_report.Prepare; comp_report.printersettings.copies:=1; for ind:=1 to printdialog.copies do report1.qrprinter.print; <---- ok in QR3, access violation in QR 4 report1.qrprinter.free; reprot1.qrprinter:=nil; In QuickReport 4 i have an access violation in the print line I had to change the code in: comp_report.printersettings.printerindex:=printer.printerindex; comp_report.Prepare; comp_report.printersettings.copies:=printdialog.copies; comp_report.print; <---- access violation in QuickReport 4 but i suspect that this way the report is generated twoice. The first in the prepare method and the second time in the print method. Am i right ? is there a way in QuickReport 4 to prepare the report once and print it many times using qrprinter ? hope it is clear thanks Roberto |