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

Rtp.PrinterSetup.PrinterName = PrinterName?

edited August 2004 in General
I'm trying to set the printer at runtime

Default Printer = Lexmark
Secondary = HP Deskjet

Rpt.PrinterSetup.PrinterName := 'HP Deskjet';
Rpt.PrinterSetup.Copies := 3;
Rpt.Print;

When i run this code it prints on the default printer.

What did i forget?

Olivier Peter.

Comments

  • edited August 2004
    Hi,

    Try using the TppReport.PrinterSetup.PrinterNames property to define the
    PrinterName property. These names need to be exact for ReportBuilder to use
    them correctly.

    --
    Best Regards,

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