473,473 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3335
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...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.