Connecting Tech Pros Worldwide Help | Site Map

page break during print in asp

Familiar Sight
 
Join Date: Oct 2008
Posts: 128
#1: Apr 15 '09
i hav a web page to display record of students in tabular form.to take print out its neccessary condition that whole record should come in one page not in separate pages is there any way to make page break after every records as there are more than 300 records its very difficult to take printout by individually selecting all records
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Apr 17 '09

re: page break during print in asp


There is a "page-break-before", "page-break-after", "page-break-inside" property in CSS, this is what you want to use, however I'm not sure how well this is implemented in different browsers. Anyway, this is how it looks:
Expand|Select|Wrap|Line Numbers
  1. <table style="page-break-before: always; page-break-inside: avoid;">
In addition, I believe there are some non-standard properties you can set in Internet Explorer. Is this to be used on a specific browser? That might make things easier.

Jared
Reply


Similar ASP / Active Server Pages bytes