Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Changing the Printername

edited June 2005 in General
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.

Comments

  • edited June 2005
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.