HOWTO: Print HTML page using WebResponse

  • Thread starter Thread starter Dan Sikorsky
  • Start date Start date
D

Dan Sikorsky

I've loaded a string variable with html from a web page URL captured using
WebRequest and WebResponse.

How can I send this html to the printer?
 
Do you want to send the HTML to the printer or do you want to print the web
page as it is rendered? These are two completely different things.

I suspect you want to do the latter, which doing yourself is going to be
exceedingly difficult, if not impossible, since that's what web browsers do
and web browsers aren't simple things.

What I would do is use the WebBrowser control, load the HTML into it, and
then have it print it.

Do a google search on: C# "WebBrowser Control" and you'll see plenty of
articles on how to use it.

Pete
 
Hello Dan,

The problem is that printer can't render your html text to print it in suitable
form
U need to render it firstly in WebBrowser and then print

DS> I've loaded a string variable with html from a web page URL captured
DS> using WebRequest and WebResponse.
DS>
DS> How can I send this html to the printer?
DS>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Back
Top