P
Patrick Westerhoff
Hello,
I need to print a HTML file and want to preset some page settings before the
printing starts (especially landscape), so that the user do not have to set
this first (the landscape is determined according on the displayed page, and
I plan to only display known pages).
So I used the WebBrowser Element to render the HTML page and I'm now trying
to set the page settings without executing the WebBrowser.ShowPageSetupDialog
method. However it seems as if the WebBrowser Control does not support this
directly, but the System.Drawing.Printing.PrintDocument object does.
So is it possible to generate a PrintDocument object from a WebBrowser page
so I can set printer settings? Or can I somehow else set the printer settings
without having the user interact and set it manually? Maybe with some API
command?
Thanks for help
Patrick Westerhoff
I need to print a HTML file and want to preset some page settings before the
printing starts (especially landscape), so that the user do not have to set
this first (the landscape is determined according on the displayed page, and
I plan to only display known pages).
So I used the WebBrowser Element to render the HTML page and I'm now trying
to set the page settings without executing the WebBrowser.ShowPageSetupDialog
method. However it seems as if the WebBrowser Control does not support this
directly, but the System.Drawing.Printing.PrintDocument object does.
So is it possible to generate a PrintDocument object from a WebBrowser page
so I can set printer settings? Or can I somehow else set the printer settings
without having the user interact and set it manually? Maybe with some API
command?
Thanks for help
Patrick Westerhoff