Changing the Printername
I would like to put some conditions in my report which
printer to use. This conditions will be in the template
file and not in my delphi codes. Event if I set
Report.Printersetup.Printername in Report.BeforePrint event,
its still going to my default printer.
Any idea how can I achieve that?
thanks in advance.
printer to use. This conditions will be in the template
file and not in my delphi codes. Event if I set
Report.Printersetup.Printername in Report.BeforePrint event,
its still going to my default printer.
Any idea how can I achieve that?
thanks in advance.
This discussion has been closed.
Comments
Unfortunately the Report.BeforePrint event fires too late to change the
printer on the fly. Which version of ReportBuilder are you using? If you
are using the latest, RB 9.02, there have been some new events added to RAP
that may fire early enough to do what you need. The
OnBeforeOpenDataPipelines and OnAfterOpenDataPipelines were the new events
added.
Another option would be to show the report on screen before sending it to
the printer.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com