Halt between pages when printing from preview
Hi,
I have a 2-page report for an ID card printer. The report doesn't show firstpage and secondpage alternatively for each record as I thought it would. If the table contains three records, thee firstpages are previewed after one another and there is only one second page at the end. I want them to print as firstpage, then secondpage, then newrecord firstpage etc..... I have played with Report.Collate on/off but to no avail. How do I get it to print both the report's two pages before jumping to the next record?
Also when I want to actually print the report FROM the preview to the printer I need to do a Showmessage both before printing firstpage and second page (To insert new card in printer and then to turn the card). How do I do that? The page's OnBeforePrint event fires when the report is rendered to preview, but I need the same event when it actually goes to the printer. How do I do that?
Thanks a lot for help on these issues.
best regards
Tor
I have a 2-page report for an ID card printer. The report doesn't show firstpage and secondpage alternatively for each record as I thought it would. If the table contains three records, thee firstpages are previewed after one another and there is only one second page at the end. I want them to print as firstpage, then secondpage, then newrecord firstpage etc..... I have played with Report.Collate on/off but to no avail. How do I get it to print both the report's two pages before jumping to the next record?
Also when I want to actually print the report FROM the preview to the printer I need to do a Showmessage both before printing firstpage and second page (To insert new card in printer and then to turn the card). How do I do that? The page's OnBeforePrint event fires when the report is rendered to preview, but I need the same event when it actually goes to the printer. How do I do that?
Thanks a lot for help on these issues.
best regards
Tor
Comments
you need to connect the tfrxreport component to a dataset that will control the number of times the report is printed, this cannot be the same dataset that is connected to the masterdataband.
usually it would be a query that contains fields that can be used as paramaters for the masterdata of the other pages.
However this will not help your situation as these events are handeled during the preparation of the report
not from the preview.
what you may need to do is run 2 separate reports one for each page and use dialogs at the delphi level.