G
Guest
What's the best way to print an html document generated in a Windows forms
application?
IE (WebBrowser control) works pretty well; with some effort to use a print
template, you can control margins, headers, footers, and get print preview.
The 'gotcha' is that (as best I can tell), there's no good way to specify the
printer that you want to print to. I tried calling the windows api to set
the default printer, and this works sometimes, but my application needs to
send different print jobs to different printers, and the selections sometimes
'step on' each other when you switch the default printer.
I also looked at the ReportViewer, but I could not find a way to get it to
render html.
Am I missing something? Surely there's a good way to print html from
Windows forms.
application?
IE (WebBrowser control) works pretty well; with some effort to use a print
template, you can control margins, headers, footers, and get print preview.
The 'gotcha' is that (as best I can tell), there's no good way to specify the
printer that you want to print to. I tried calling the windows api to set
the default printer, and this works sometimes, but my application needs to
send different print jobs to different printers, and the selections sometimes
'step on' each other when you switch the default printer.
I also looked at the ReportViewer, but I could not find a way to get it to
render html.
Am I missing something? Surely there's a good way to print html from
Windows forms.