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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View > Style menu 3 31
Change color in a check box 8 34
Difference between Leaflet and MapBox? 5 42
Disabling a Faux Submit Button 4 35
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!
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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.
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)

738 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