page break during print in asp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    page break during print in asp

    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
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    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:
    Code:
    <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

    Comment

    Working...