title: Set print orientation to landscape
body: <p>i already can create a print to print a file in my windows forms. However, whenever i add this code:</p>
  
  <pre><code>printDialog.PrinterSettings.DefaultPageSettings.Landscape = true;
  </code></pre>
  
  <p>I can't see the Orientation of the page become LandScape, it is still Portrait.</p>
  
  <p>How do I make it LandScape as default? So, whenever i click PrintPreview or PrintFile, the Orientation of the page will become LandScape, not Portrait.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>private void PrintPreview(object sender, EventArgs e)
  {
      PrintPreviewDialog _PrintPreview = new PrintPreviewDialog();
      _PrintPreview.Document = printDocument1;
      ((Form)_PrintPreview).WindowState = FormWindowState.Maximized;
      _PrintPreview.ShowDialog();
  }
  
  private void PrintFile(object sender, EventArgs e)
  {
      PrintDialog printDialog = new PrintDialog();
      printDialog.Document = printDocument1;
      printDialog.UseEXDialog = true;
  
      if (DialogResult.OK == printDialog.ShowDialog())
      {
          printDocument1.DocumentName = "Test Page Print";
          printDocument1.Print();
      }
  }
  </code></pre>