?
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
Medium Priority
?
178 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
[X]
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
  • 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 500 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

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.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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.
Suggested Courses

765 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