How to get dialog result from WebBrowser.ShowPageSetupDialog

I am using a WebBrowser control in a Visual C # Application (.net 2.0).
Now I would like to add a print button that shows a page setup dialog and then prints immediately when the user clicks the OK button or cancels the print when the user clicks the Cancel button.
However, WebBrowser.ShowPageSetupDialog does not return DialogResult, it is simply not valid.
Is there something I missed, or in some other way to find out what users are doing?

0


source to share


1 answer


The Page Setup dialog uses the WebBrowser control to set registry entries. What I have done in the past has been to set these values ​​for the user in code and let them print.



+1


source







All Articles