471,354 Members | 1,199 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

HOWTO: Print HTML page using WebResponse

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?
Feb 23 '06 #1
2 3743
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

"Dan Sikorsky" <ds****@gte.net> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
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?

Feb 23 '06 #2
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 Nietzsche
Feb 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Peter Valdemar M?rch | last post: by
3 posts views Thread by news | last post: by
18 posts views Thread by J-T | last post: by
reply views Thread by Dan Sikorsky | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.