473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Printing an ASP.NET web page from VB.NET - (HTTPWebResponse + Printing)

Hi There!

I'm trying to print ASP.NET pages to the printer. I know I can grab the
output contents of the ASP.NET page by using HttpWebRequest and
HttpWebResponse objects. However, once I got the contents, it is just HTML.
How do I go about printing that HTML as a graphical document to the
printer???

Many thanks!!!!

Jon
Jan 8 '06 #1
7 1743
Jon,

Why can't you print from your browser?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi There!

I'm trying to print ASP.NET pages to the printer. I know I can grab the
output contents of the ASP.NET page by using HttpWebRequest and
HttpWebResponse objects. However, once I got the contents, it is just
HTML. How do I go about printing that HTML as a graphical document to the
printer???

Many thanks!!!!

Jon

Jan 8 '06 #2
Hi Eliyahu,

Thanks for the reply.

I need to automate the printing of ASP.NET pages. I'm actually developing a
VB.NET application. From there, user can click "Print" and I'm trying to
print out an ASP.NET page without user intervention.

Any ideas? Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
Jon,

Why can't you print from your browser?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi There!

I'm trying to print ASP.NET pages to the printer. I know I can grab the
output contents of the ASP.NET page by using HttpWebRequest and
HttpWebResponse objects. However, once I got the contents, it is just
HTML. How do I go about printing that HTML as a graphical document to the
printer???

Many thanks!!!!

Jon




Jan 8 '06 #3
Is the printer on the server or on the client?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
Hi Eliyahu,

Thanks for the reply.

I need to automate the printing of ASP.NET pages. I'm actually developing
a
VB.NET application. From there, user can click "Print" and I'm trying to
print out an ASP.NET page without user intervention.

Any ideas? Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
Jon,

Why can't you print from your browser?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi There!

I'm trying to print ASP.NET pages to the printer. I know I can grab the
output contents of the ASP.NET page by using HttpWebRequest and
HttpWebResponse objects. However, once I got the contents, it is just
HTML. How do I go about printing that HTML as a graphical document to
the
printer???

Many thanks!!!!

Jon



Jan 8 '06 #4
Hi Eliyahu,

It's on the client.

Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:e5**************@TK2MSFTNGP15.phx.gbl...
Is the printer on the server or on the client?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
Hi Eliyahu,

Thanks for the reply.

I need to automate the printing of ASP.NET pages. I'm actually developing
a
VB.NET application. From there, user can click "Print" and I'm trying to
print out an ASP.NET page without user intervention.

Any ideas? Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
Jon,

Why can't you print from your browser?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi There!

I'm trying to print ASP.NET pages to the printer. I know I can grab the
output contents of the ASP.NET page by using HttpWebRequest and
HttpWebResponse objects. However, once I got the contents, it is just
HTML. How do I go about printing that HTML as a graphical document to
the
printer???

Many thanks!!!!

Jon



Jan 8 '06 #5
Hello Jon,

Use the axWebbrowser control to load the page in HTML format and print it
from there.

Cheers
Cyril Gupta
Jan 9 '06 #6
Jon,

On client side ASP.NET pages run in browsers as HTML pages. The browser
holds the page HTML content.What sort of user intervention are you trying to
avoid?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:e7*************@TK2MSFTNGP09.phx.gbl...
Hi Eliyahu,

It's on the client.

Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:e5**************@TK2MSFTNGP15.phx.gbl...
Is the printer on the server or on the client?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
Hi Eliyahu,

Thanks for the reply.

I need to automate the printing of ASP.NET pages. I'm actually
developing a
VB.NET application. From there, user can click "Print" and I'm trying to
print out an ASP.NET page without user intervention.

Any ideas? Thanks again!
Jon

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
Jon,

Why can't you print from your browser?

Eliyahu

"Jon B" <no*****@sorry.sorry> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
> Hi There!
>
> I'm trying to print ASP.NET pages to the printer. I know I can grab
> the
> output contents of the ASP.NET page by using HttpWebRequest and
> HttpWebResponse objects. However, once I got the contents, it is just
> HTML. How do I go about printing that HTML as a graphical document to
> the
> printer???
>
> Many thanks!!!!
>
> Jon
>




Jan 9 '06 #7
I am using axWebBrowser in my Windows application, however, I don't know the
control very well. Any site provide me more information about "axWebBrowser"?
Please help. Thanks.

Jason

"Cyril Gupta" wrote:
Hello Jon,

Use the axWebbrowser control to load the page in HTML format and print it
from there.

Cheers
Cyril Gupta

Jan 30 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: love_norip | last post by:
I have encountered a problem when I try to visit a web page (like http://www.xxx.org....?arg1=x&arg2=x&....) using HttpWebRequest and HttpWebResponse and related methods .NET provides.The code is...
2
by: Iggy Evans | last post by:
Hi My app is trying to login to an ASP.NET site that uses Forms authentication. I am trying to do in my app (what was previously posted in a newsgroup) the same that a browser does 3) The browser...
2
by: Just D. | last post by:
Does anybody know how can we check if the URL exists inside currently running web application written in C#? For example I'm having the page name like: "SomePage.aspx" and I need to know if this...
1
by: PetroMan | last post by:
I am using VB .Net with HTTPWebRequest/HTTPWebResponse to navigate a web site and print invoices (not download them - their requirements, not mine). The related web site, when printing an invoice,...
0
by: Howeird | last post by:
Problem: I am writting a quick and dirty web link checker for a site that allows local business to post their web site's URL. I have encountered a probelm when the reqested URI points to a site...
7
by: Jon B | last post by:
Hi There! I'm trying to print ASP.NET pages to the printer. I know I can grab the output contents of the ASP.NET page by using HttpWebRequest and HttpWebResponse objects. However, once I got the...
0
by: davidpenty | last post by:
Hi there, I am having some problems with a multi-threaded asp.net seach page. My search page sends off four asynchronous http requests to four search engines then waits for the results to come...
4
by: Kuldeep | last post by:
Hi All, I am trying to read the contents of a page through its URL. My code snippet is as follows: public void mtdGetPageDataHWR() { HttpWebRequest objRequ =...
1
by: beebee | last post by:
OK all I have a webservice utilizing API's in to an application. I want to call this service and load the returned information onto my aspx page. right now i am not getting any errors in my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.