Professional Web Applications Themes

print web page - ASP.NET General

is it possible to print a web page by using the PrintDoent 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 ...

  1. #1

    Default print web page

    is it possible to print a web page by using the PrintDoent 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. #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.invalidweb2news.net> schrieb im Newsbeitrag news:48814N143web2news.com...
    > is it possible to print a web page by using the PrintDoent 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

Similar Threads

  1. PRINT PAGE
    By Jorntk in forum Macromedia Dynamic HTML
    Replies: 8
    Last Post: December 7th, 12:10 PM
  2. How to make "Print page" and "Print Chapter" buttons
    By Jaco_J_Cloete@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 0
    Last Post: July 20th, 12:05 PM
  3. Print two A5 on the A4 page
    By Neil_Hannam@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: May 16th, 11:34 PM
  4. ID 2 Won't Print 1 Page out of 224. Why?
    By Harold_D._Gladstone@adobeforums.com in forum Adobe Indesign Windows
    Replies: 2
    Last Post: April 26th, 05:59 AM
  5. ID 2 Won't Print 1 Page out of 224. Why?
    By Robert_Levine@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: April 25th, 02:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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