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
172 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now