Report printer setup in runtime
Hey,
how I can changing the printer setup (tray 2 to tray 3) before printing a
subreport and after print the subreport from tray3 to tray2 .
example code:
the subreport is in a group footer.
in BeforePrint: Report.PrinterSetup.Binname := 'Tray 3';
in Afterprint: Report.PrinterSetup.Binname := 'Tray 2';
but all sites of the report come from tray 2.
Can you help me?
Best regards
Dirk
how I can changing the printer setup (tray 2 to tray 3) before printing a
subreport and after print the subreport from tray3 to tray2 .
example code:
the subreport is in a group footer.
in BeforePrint: Report.PrinterSetup.Binname := 'Tray 3';
in Afterprint: Report.PrinterSetup.Binname := 'Tray 2';
but all sites of the report come from tray 2.
Can you help me?
Best regards
Dirk
This discussion has been closed.
Comments
Try using Report.OnEndPage event rather than Report.BeforePrint or
Report.AfterPrint
events. This should fire early enough to change the BinName before the
report is generated.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
My problem is the following:
For an entire report I can specify without problems binname to the run time.
But I must specify to the run time that subreports are pulled because of
different forms from different bins. But all the same with which event the
attitude always applies to the entire report.
Also different attitudes under the menu Page Setup do not furnish in
subreports change anything in it.
Under the newsgroup tech-tips I found the Contribution Selecting Paper Bins
for Each Page, but this also not functioned by me.
Please help me.
Thanks
Dirk
Below is a link to an example showing how to change the printer bin based on
certian restrictions. This should help get you on the right track.
http://www.digital-metaphors.com/tips/ChangePrinterBin.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com