Quantcast
Viewing all articles
Browse latest Browse all 3636

Duplex/simplex printer settings being ignored

We have code that essentially boils down to this:

 

    CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument;

    //

    // Our code

    //

    reportDocument.PrintToPrinter(printerSettings, pageSettings, false);

 

At runtime, we have confirmed the following (when user wishes to print simplex) are all set to PrinterDuplex.Simplex when passed to PrintToPrinter():

 

pageSettings.PrinterSettings.Duplex

printerSettings.DefaultPageSettings.PrinterSettings.Duplex

printerSettings.Duplex

 

Yet in some circumstances, this is being ignored and the report is printed duplex. The behaviour is as follows:

 

- Set printing preferences in control panel to 1-sided

- User generates a report and specifies explicitly to print 1-sided

- Report is printed 1-sided

 

- Set printing preferences in control panel to 2-sided

- User generates a report and specifies explicitly to print 1-sided

- Report is printed 1-sided

 

- Set printing preferences in control panel to "Use printer settings"

- User generates a report and specifies explicitly to print 1-sided

- Report is printed 2-sided

 

The printer this has been confirmed with is using the Lexmark Universal PS3 driver.

 

The CrystalDecisions.CrystalReports.Engine assembly being referenced is version 13.0.2.469.

 

Any suggestions on what may be causing this?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>