title: Set Print Orientation on PrintDialog using Flow Document
body: <p>Just wondering if there is a way to set the print document orientation on a Print Dialog that is using a flow document.</p>
  
  <p>e.g.</p>
  
  <pre><code>var document = userControl.Content as FlowDocument;
  var printDialog = new PrintDialog();
  if (printDialog.ShowDialog() == true)
  {
      var paginator = ((IDocumentPaginatorSource) document).DocumentPaginator;
      paginator.PageSize = new Size(userControl.Width, userControl.Height);
  
      //Set Orientation Landscape .....
  
  
      printDialog.PrintDocument(paginator, PrintDescription);
  }
  </code></pre>