Question

I'm using a WebBrowser control in my Visual C# (.net 2.0) application.
Now I'd like to add a print button which shows the page setup dialog and then directly prints when the user presses the OK button or cancels the printing when the user presses the cancel button.
However WebBrowser.ShowPageSetupDialog doesn't return DialogResult, but just void.
Is there something I've missed or any other way to know the users action?

Was it helpful?

Solution

The page setup dialog box off a WebBrowser control sets registry entries. What I've done in the past was to set those values for the user in code and only gave them the option to print.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top