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

Duplex Printer

edited June 2004 in General
Thak you for your support.

So, I'll have to change all my reports ?

May I take some properties from the windows printer setup ?

Thaks.
Ailton

Comments

  • edited June 2004
    When you design a report you configure the Report.PrinterSetup properties.
    These are saved as part of the report definition. When the report prints,
    the PrinterSetup properties are assigned to the printer driver.

    If you want all of your reports to use duplexing, then yes you need to
    configure the Report.PrinterSetup properties to do that. You can do that
    programmatically if you prefer.

    If you want to get the windows default PrinterSetup properties and apply
    them to the Report.PrinterSetup prior to calling Report.Print, that will
    work as well.

    Example:

    uses
    ppPrintr;

    var
    lPrinter: TppPrinter;

    begin

    lPrinter := TppPrinter.Create;

    lPrinter.PrinterName := ppPrinters.DefaultPrinterName;

    ShowMessage(ppPrinters.DefaultPrinterName + ': ' +
    lPrinter.PrinterSetup.PaperName);

    {assign default printer settings to a report}
    myReport.PrinterSetup := lPrinter.PrinterSetup;


    lPrinter.Free;

    end;


    --

    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.