Discussion:
Has anyone come up yet with a trick to prevent breaking up table rows (TR) while printing?
(too old to reply)
a***@inbox.com
2008-07-17 20:26:39 UTC
Permalink
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.

I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.

Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.

We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
Ed Mullen
2008-07-19 17:36:20 UTC
Permalink
Post by a***@inbox.com
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.
Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.
We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
What do you want to happen when a table is too long to fit on a piece of
paper?

Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.

It would help to post a URL and describe what unwanted action is
happening when printing the page.
--
Ed Mullen
http://edmullen.net
FATAL ERROR! SYSTEM HALTED! - Press any key to do nothing.
a***@inbox.com
2008-07-23 00:43:15 UTC
Permalink
Post by Ed Mullen
What do you want to happen when a table is too long to fit on a piece of
paper?
Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.
It would help to post a URL and describe what unwanted action is
happening when printing the page.
--
Ed Mullenhttp://edmullen.net
I would want such table to be broken along the TR lines, meaning that
a page break should not occur inside a table row or (if an alternative
to a table is chosen) inside a block of information.

I'll see if I can set a sample somewhere, since I'm pretty sure
Firefox tears table rows (just checked on my browser v2.0).
Ed Mullen
2008-07-23 03:44:12 UTC
Permalink
Post by a***@inbox.com
Post by Ed Mullen
What do you want to happen when a table is too long to fit on a piece of
paper?
Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.
It would help to post a URL and describe what unwanted action is
happening when printing the page.
--
Ed Mullenhttp://edmullen.net
I would want such table to be broken along the TR lines, meaning that
a page break should not occur inside a table row or (if an alternative
to a table is chosen) inside a block of information.
I'll see if I can set a sample somewhere, since I'm pretty sure
Firefox tears table rows (just checked on my browser v2.0).
I'm sorry. Your answer didn't really address directly what I asked.
But, the most important thing is that you didn't provide any URLs to
examples of what you're trying to do and why it's not working.
--
Ed Mullen
http://edmullen.net
Do Lipton employees take coffee breaks?
a***@inbox.com
2008-07-23 00:47:55 UTC
Permalink
Post by Ed Mullen
What do you want to happen when a table is too long to fit on a piece of
paper?
Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.
I want to make sure that a table row or a block of information, if
tables are not used, is not torn by a page break when printing.

I just verified with Firefox 2.0, it does that.

I'll see if I can put an example somewhere...
Helpful person
2008-07-25 19:57:59 UTC
Permalink
Post by a***@inbox.com
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.
Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.
We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
I tackled this problem about 2 a year ago. However, I never found a
solution. One can't even force a page break between table rows. Hope
someone can come up with an answer.
a***@inbox.com
2008-07-28 21:25:27 UTC
Permalink
Post by a***@inbox.com
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.
Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.
We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
I tackled this problem about 2 a year ago.  However, I never found a
solution.  One can't even force a page break between table rows.  Hope
someone can come up with an answer.- Hide quoted text -
- Show quoted text -
I set up 2 sample pages to illustrate the problem.

http://array7.angelfire.com/print.html
http://array7.angelfire.com/print2.html

The table displayed is cut during printing inside a table row in both
IE & Firefox.
These browsers (IE6 & Firefox 2 are the two most common clients used
to browse our web site).

Loading...