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

Print dialog does not retrieve its values from control panel printer settings

edited April 2013 in General
For example my printer has "Print on Both Sides" combo box that has three
possible values

“None”

"Flip on Long Edge"

"Flip on Short Edge"

In control panel preference I set "Print on Both Sides" combo box to "Flip
on Long Edge"

The code:

ppReport.ShowPrintDialog := True;

ppReport.Print;

Opens print dialog but its "Print on Both Sides" combo box is “None” instead
of "Flip on Long Edge".



My report should take the control panel default values whether I set
ShowPrintDialog or not.



Environment:

Delphi XE

ReportBuilder Enterprise Edition Version 12.05 Build 224

Windows 7 (64 bits)

Kyocera PCL 5 Classic Universaldriver

This issue occurred on Windows Server 2008 as well probably with deferent
printer.

Comments

  • edited April 2013
    Hi Erez,

    This is functioning as designed. When printing a report, the print
    dialog will reflect the report's PrinterSetup. If you have the Duplex
    property set to dpNone, this will be changed once you print to override
    the default setting. If you would like to print your report using
    duplexing, you need to assign the PrinterSetup.Duplex property of the
    report.

    For a future update we are considering adding a dpDefault setting to
    always use the Windows default duplex setting.

    Best Regards,

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