Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default print web page

    is it possible to print a web page by using the PrintDocument class?
    The thing is that I need to print out some data in a nice format if
    possible, to a client's default printer. I got the printing part
    working. But I want to format the page first before it prints. I want
    to create a web page to gather all data in a table and print out the web
    page. So what I see is what the client gets. I don't know how to print
    a web page by using System.Drawing.Printing. Currently, I put all data
    into stream and use PrintPageEventHandler to format the output by
    reading from stream. But I want to format the data into a table on a
    web page and print out the page. Please let me know if anyone knows.

    --
    Direct access to this group with [url]http://web2news.com[/url]
    [url]http://web2news.com/?microsoft.public.dotnet.framework.aspnet[/url]
    May Guest

  2. Similar Questions and Discussions

    1. PRINT PAGE
      Can php be use to print a web page
    2. How to make "Print page" and "Print Chapter" buttons
      Hi my name is Jaco and I am a multimedia designer who uses Macromedia Director and Flash to create multimedia presentations. I have a request from a...
    3. Print two A5 on the A4 page
      I am trying to form a booklet with A5 pages from the cd which has A4 size print out Thanks Neil Durban South Africa.
    4. ID 2 Won't Print 1 Page out of 224. Why?
      Hello. I'm getting ready to send my first print job to the printer, a book of 224 pages. I'm printing out pages and one so far will not print on...
    5. ID 2 Won't Print 1 Page out of 224. Why?
      Sounds like something on that page is corrupt. Start deleting things one at a time and try printing again. Bob
  3. #2

    Default Re: print web page

    You seem to having mixed up client-side and server-side code. Server-side code can perform on the server only. So if you want to print your web page on the server machine, ASP.NET will perfectly help you... However, you can't do anything on the client using server-side code. If you need to print something on the client, use - as the name suggests - client-side code, like JavaScript.

    HTH,
    Axel Dahmen

    --------------------------
    "May" <meimei8279.news.invalid@web2news.net> schrieb im Newsbeitrag news:48814N143@web2news.com...
    > is it possible to print a web page by using the PrintDocument class?
    > The thing is that I need to print out some data in a nice format if
    > possible, to a client's default printer. I got the printing part
    > working. But I want to format the page first before it prints. I want
    > to create a web page to gather all data in a table and print out the web
    > page. So what I see is what the client gets. I don't know how to print
    > a web page by using System.Drawing.Printing. Currently, I put all data
    > into stream and use PrintPageEventHandler to format the output by
    > reading from stream. But I want to format the data into a table on a
    > web page and print out the page. Please let me know if anyone knows.
    >
    > --
    > Direct access to this group with [url]http://web2news.com[/url]
    > [url]http://web2news.com/?microsoft.public.dotnet.framework.aspnet[/url]
    Axel Dahmen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139