css - Vb.net 8.5 x 11paper to webform -
basically have vb.net form when user clicks submit button going store values in sql database. have done already.
what know best way approach after user clicks submit submit form database should use separate button call values crystal report or report designer? or there css template mimic size of piece of paper on web , print seen on screen.
i tried create website 612 x 792 googled size of 8.5 x 11 sheet of paper although looked great on web when printed decided print 4 pages when should have been 2 pages. little confused , thinking maybe approaching wrong way advice appreciated.
thanks
here part of css code trying make size of paper
body
{ background: #b6b7bc; font-size: .70em; font-family: arial; margin: 0px; padding: 0px; color: #696969; }
firstpagecontainer
{ width: 612px; height: 792px; background-color:#ffffff; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: thin solid #000000; }
secondpagecontainer
{ width: 612px; height: 792px; background-color:#ffffff; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: thin solid #000000; }
you can't guarantee 612x792 rendered size of web page on paper.
what need build page works fine varying resolutions, , use css you.
this page has information started, geared more print version of screen content: http://line25.com/tutorials/handy-tips-for-creating-a-print-css-stylesheet
if need guarantee specific size on paper, need use pdf.
Comments
Post a Comment