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

Discussion in 'ASP .Net' started by Jon B, Jan 8, 2006.

  1. Jon B

    Jon B Guest

    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

    Many thanks!!!!

    Jon B, Jan 8, 2006
    1. Advertisements

  2. Jon,

    Why can't you print from your browser?

    Eliyahu Goldin, Jan 8, 2006
    1. Advertisements

  3. Jon B

    Jon B Guest

    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 B, Jan 8, 2006
  4. Is the printer on the server or on the client?

    Eliyahu Goldin, Jan 8, 2006
  5. Jon B

    Jon B Guest

    Hi Eliyahu,

    It's on the client.

    Thanks again!
    Jon B, Jan 8, 2006
  6. Jon B

    Cyril Gupta Guest

    Hello Jon,

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

    Cyril Gupta
    Cyril Gupta, Jan 9, 2006
  7. 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

    Eliyahu Goldin, Jan 9, 2006
  8. Jon B

    Guest Guest

    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.

    Guest, Jan 30, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.