title: VB.NET Set default's printer orientation
body: <p>Is there a way for me to change the printer orientation of the default printer with VB 2010 just like you would normally change it from Printers and Devices and entering the printer preferences?</p>
  
  <pre><code>    Try
          Dim MyProcess As New Process
          MyProcess.StartInfo.CreateNoWindow = False
          MyProcess.StartInfo.Verb = "print"
          MyProcess.StartInfo.FileName = "outputvb.pdf"
          MyProcess.Start()
          MyProcess.WaitForExit(2000)
          Try
              MyProcess.CloseMainWindow()
              MyProcess.Close()
          Catch ex As Exception
  
          End Try
      Catch ex As Exception
          MessageBox.Show(ex.Message, "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
      End Try
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  Check the old post, are you able to advice me a better solution then exporting the reportviewer to a PDF then printing the PDF from Visual Basic?</p>
  
  <p>Basically what I want to really do is take load the reportviewer with data and after it loads print it automatically without pressing any buttons to the default printer.</p>
  
  <p>Thanks</p>