title: Printing an external PDF document in VB.net
body: <p>I know this question has been asked before, but my situation is a bit wonky.</p>
  
  <p>Basically, I'm trying to print a PDF file that I've generated using a previous Windows Form. I can find the file no problem, and I used the following code which I found off MSDN's help forums:</p>
  
  <pre><code>Dim p As New System.Diagnostics.ProcessStartInfo()
  p.Verb = "print"
  p.WindowStyle = ProcessWindowStyle.Hidden
  p.FileName = "C:\534679.pdf"   'This is the file name
  p.UseShellExecute = True
  System.Diagnostics.Process.Start(p)
  </code></pre>
  
  <p>So far so good, but everytime I press the button to run this code, it keeps asking me to save it as a PDF file instead, as shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/rIG4O.png" alt="enter image description here"></p>
  
  <p>I've also tried adding a PrintDialog to the Windows Form, getting it to pop up, and I can select the printer I want to use from there, but even after selecting the printer it still asks me to print to PDF Document instead.</p>
  
  <p>What am I doing wrong?</p>