views:

312

answers:

1

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?

+1  A: 

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.

Austin Salonen
Thanks for the tip. It doesn't solve my problem though.
Marc