#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    74
    Rep Power
    13

    Question CSS:: formatting printer output


    When using @media to set up a style sheet for printing, is it possible to force a pagebreak after 60 lines have been printed?
    J. Birdsell,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    There is a page break property in CSS (MSIE), but to apply it specifically after 60 lines will be a bit tricky. You'll need to do some scripting to calculate where your lines are, and place them in appropriate elements.

    {page-break-before : sBreak;}

    {page-break-after : sBreak;}
  4. #3
  5. superficial
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Peterborough, England
    Posts
    188
    Rep Power
    13
    this might be of use.

    matt
    _______________
    Matt
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    74
    Rep Power
    13
    Thanks folks,

    I used the "page-break-after: auto" in a perl script that was creating a dynamic report table. This worked great . Now I just need to figure out how to replicate the report header on each page.

    Thanks again.
    J. Birdsell,
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Boston
    Posts
    12
    Rep Power
    0
    Have you had any luck repeating the page headers? I would be interested in how you did it.

    I am trying the same thing with PHP...

IMN logo majestic logo threadwatch logo seochat tools logo