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.
Comments
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