Solved

I wan't to create a printable webpage but.... whenever the table gets longer than one page, the result is cut off

Posted on 2008-10-19
4
173 Views
Last Modified: 2012-05-05
The page displays okay on browsers

But everytime the data exceeds one page, it was cut off in the middle ( pie charts /  are cut off, instead of printed on the next page )
0
Comment
Question by:trimaxs
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:fcardinaux
ID: 22755047
You may use the page-break-before property: http://www.w3schools.com/CSS/css_ref_print.asp

It works well with Firefox, but it is trickier to implement for Internet Explorer.
0
 

Author Comment

by:trimaxs
ID: 22766003
thx fcardinaux for the answer.. i've try it.. but it didn't work..  the printed data still got cut off in the middle.. is there any other way (adjusting the CSS perhaps.. or something) that works?? or any solution for printing long table data that exceed 2 pages.. thx
0
 
LVL 8

Accepted Solution

by:
fcardinaux earned 250 total points
ID: 22768103
I had the same problem a few weeks ago. The solution I've suggested in my previous comment worked on Firefox, but table cells were still split in the middle if the table exceeded one page. It was even more difficult to make page-break-before work on Internet Explorer. I really needed to respect the rules given here: http://www.w3schools.com/CSS/pr_print_pagebb.asp. Especially, I had to "use the page-breaking properties as few times as possible and avoid page-breaking properties inside tables, floating elements, and block elements with borders."

As far as I know, there is no satisfying solution.
0
 

Author Closing Comment

by:trimaxs
ID: 31507706
hmm.. sorry for the grading >,< just confuse.. nothing else to say :D anyway... thx for the answer
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question