Can not Print in WPF <p>I have such a problem here. I have a window in my WPF project, and have a button, with what I want To print With printer that page. My click event for that button is this. </p> <pre><code>PrintDialog dlg = new PrintDialog(); Window currentMainWindow = Application.Current.MainWindow; Application.Current.MainWindow = this; if ((bool)dlg.ShowDialog().GetValueOrDefault()) { Application.Current.MainWindow = currentMainWindow; } </code></pre> <p>When I click on buton, the Print dialog is popped out. Here <img src="https://i.stack.imgur.com/BNHcV.png" alt="enter image description here"> But When clicking on print, nothing happenes, the dialog is just closing, and no results, it is not working not with Adobe PDF, not with ARX CoSign... </p> <p>What to do ? Thanks</p>