title: Ghostscript.NET can't print with selected printer name
body: <p>I want to print a pdf file with selected printer name via <a href="https://ghostscriptnet.codeplex.com" rel="nofollow noreferrer"><strong>Ghostscript.NET</strong></a>. This application is actually a wrapper of <a href="https://github.com/cefsharp/CefSharp" rel="nofollow noreferrer">CefSharp</a> browser. When user click on a download button, it download and print out with selected printer directly.</p>
  
  <p><a href="https://i.stack.imgur.com/fraed.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fraed.png" alt="Visual studio with print"></a></p>
  
  <p>You can see the screenshot above, I pass the printer name thru URL query string. Also, I have set the option <code>-dNOPAUSE</code> &amp; <code>-dNOPROMPT</code>. But why it still come out a print window, and the default selected printer is not what I have set?</p>
  
  <p>Any idea what's going wrong here?</p>
  
  <h2>EDIT: Mar 4, 2016 11:31am</h2>
  
  <p>For ghostscript in command line, it will be like</p>
  
  <pre><code>"C:\Program Files (x86)\gs\gs9.18\bin\gswin32c.exe"^
   -empty^
   -dPrinted^
   -dBATCH^
   -dNOPAUSE^
   -dNOPROMPT^
   -sFONTPATH=C:\Windows\Fonts^
   -dNOSAFER^
   -dNumCopies=1^
   -sDEVICE=mswinpr2^
   -sOutputFile="%printer%Brother MFC-295CN Printer"^
   -f C:\Users\Dell\AppData\Local\Temp\file-tmp.pdf
  </code></pre>
  
  <p>but then it still show the print prompt.</p>