title: Print dialog and print prewiew dialog for WPF
body: <p>Is there a print dialog for WPF that is combinated whit a print preview dialog in WPF like Google Chrome or Word does?</p>
  
  <p><a href="https://i.stack.imgur.com/Dq2rw.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Dq2rw.jpg" alt="Like Google chrome does."></a></p>
  
  <p>At this moment I use a the print preview dialog from Windows forms. I have also try for to use the WPF version of it. But WPF has no <code>PrintPreviewDialog</code> or <code>PrintPrewiewControl</code>. This is my code:</p>
  
  <pre><code>//To the top of my class file:
  using Forms = System.Windows.Forms;
  
  //in a methode on the same class:
  PageSettings setting = new PageSettings();
  setting.Landscape = true;
  
  _document = new PrintDocument();
  _document.PrintPage += _document_PrintPage;
  _document.DefaultPageSettings = setting ;
  
  Forms.PrintPreviewDialog printDlg = new Forms.PrintPreviewDialog();
  printDlg.Document = _document;
  printDlg.Height = 500;
  printDlg.Width = 200;
  
  try
  {
      if (printDlg.ShowDialog() == Forms.DialogResult.OK)
      {
          _document.Print();
      }
  }
  catch (InvalidPrinterException)
  {
      MessageBox.Show("No printers found.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
  }
  </code></pre>
  
  <p>I've also searched for a NuGet package but nothing found really good.</p>