Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
174 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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.

809 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