Home All Groups Group Topic Archive Search About

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

Author
8 Jan 2006 1:32 PM
Jon B
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

Author
8 Jan 2006 2:54 PM
Eliyahu Goldin
Jon,

Why can't you print from your browser?

Eliyahu

Show quoteHide quote
"Jon B" <noemail@sorry.sorry> wrote in message
news:OrOpNgFFGHA.2300@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
>
Author
8 Jan 2006 3:25 PM
Jon B
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

Show quoteHide quote
"Eliyahu Goldin" <removemeegol***@monarchmed.com> wrote in message
news:uRob3NGFGHA.1124@TK2MSFTNGP10.phx.gbl...
> Jon,
>
> Why can't you print from your browser?
>
> Eliyahu
>
> "Jon B" <noemail@sorry.sorry> wrote in message
> news:OrOpNgFFGHA.2300@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
>>
>
>
Author
8 Jan 2006 4:01 PM
Eliyahu Goldin
Is the printer on the server or on the client?

Eliyahu

Show quoteHide quote
"Jon B" <noemail@sorry.sorry> wrote in message
news:OgsoEfGFGHA.1736@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" <removemeegol***@monarchmed.com> wrote in message
> news:uRob3NGFGHA.1124@TK2MSFTNGP10.phx.gbl...
>> Jon,
>>
>> Why can't you print from your browser?
>>
>> Eliyahu
>>
>> "Jon B" <noemail@sorry.sorry> wrote in message
>> news:OrOpNgFFGHA.2300@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
>>>
>>
>>
>
>
>
>
Author
8 Jan 2006 5:01 PM
Jon B
Hi Eliyahu,

It's on the client.

Thanks again!
Jon

Show quoteHide quote
"Eliyahu Goldin" <removemeegol***@monarchmed.com> wrote in message
news:e5t9DzGFGHA.3700@TK2MSFTNGP15.phx.gbl...
> Is the printer on the server or on the client?
>
> Eliyahu
>
> "Jon B" <noemail@sorry.sorry> wrote in message
> news:OgsoEfGFGHA.1736@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" <removemeegol***@monarchmed.com> wrote in message
>> news:uRob3NGFGHA.1124@TK2MSFTNGP10.phx.gbl...
>>> Jon,
>>>
>>> Why can't you print from your browser?
>>>
>>> Eliyahu
>>>
>>> "Jon B" <noemail@sorry.sorry> wrote in message
>>> news:OrOpNgFFGHA.2300@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
>>>>
>>>
>>>
>>
>>
>>
>>
>
>
Author
9 Jan 2006 8:40 AM
Eliyahu Goldin
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

Show quoteHide quote
"Jon B" <noemail@sorry.sorry> wrote in message
news:e7xQnUHFGHA.644@TK2MSFTNGP09.phx.gbl...
> Hi Eliyahu,
>
> It's on the client.
>
> Thanks again!
> Jon
>
> "Eliyahu Goldin" <removemeegol***@monarchmed.com> wrote in message
> news:e5t9DzGFGHA.3700@TK2MSFTNGP15.phx.gbl...
>> Is the printer on the server or on the client?
>>
>> Eliyahu
>>
>> "Jon B" <noemail@sorry.sorry> wrote in message
>> news:OgsoEfGFGHA.1736@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" <removemeegol***@monarchmed.com> wrote in message
>>> news:uRob3NGFGHA.1124@TK2MSFTNGP10.phx.gbl...
>>>> Jon,
>>>>
>>>> Why can't you print from your browser?
>>>>
>>>> Eliyahu
>>>>
>>>> "Jon B" <noemail@sorry.sorry> wrote in message
>>>> news:OrOpNgFFGHA.2300@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
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
Author
9 Jan 2006 1:30 AM
Cyril Gupta
Hello Jon,

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

Cheers
Cyril Gupta
Author
30 Jan 2006 6:24 AM
JasonChoi
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

Show quoteHide quote
"Cyril Gupta" wrote:

> Hello Jon,
>
> Use the axWebbrowser control to load the page in HTML format and print it
> from there.
>
> Cheers
> Cyril Gupta
>
>
>