title: PrintDocument.PrinterSettings.Duplex Network Printer
body: <p>I am trying to print my document to a specific printer, tray and set the duplex settings using code like this:</p>
  
  <pre><code>void PrintingSystem_StartPrint(object sender, PrintDocumentEventArgs e)
  {
      //e.g. \\patch2\MIU Copier
      e.PrintDocument.PrinterSettings.PrinterName = printerName; 
      //e.g. Tray 2
      e.PrintDocument.DefaultPageSettings.PaperSource = paperSource; 
  
      if (e.PrintDocument.PrinterSettings.CanDuplex)
          e.PrintDocument.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal;
  }
  </code></pre>
  
  <p>The PrinterName and PaperSource settings work perfectly but the CanDuplex property is always false despite knowing the copier is capable of this. Also if I exclude the if statement and just set the property anyway it still prints in simplex. Is there any way to do what I want I have had a bit of a google and it seems it may be an issue specifically with network printers but I haven't found any work around.</p>
  
  <p><strong>Edit:</strong>
  I have since tried it on a few different network printers (copiers) and it seems to work on some and not others. Namely doesn't work on Gestetner 2212 PCL 5e but does work on Ricoh Aficio MP C2550. Looks like it may be bad drivers reporting wrongly, I will leave the question for now for any comments. </p>