Jump to content

Do not break table row when printed


bulrush

Recommended Posts

I have an HTML table which could span 10-50 pages. When I print this HTML page to the printer, how do I prevent the printer from printing part of a row on one page, and part on the next page? I do not rows to break across pages.

 

Thanks.

 

Link to comment
Share on other sites

Minimize the size of your table to fit the size of printer page.

Can't do that. Printout could be 10-50 pages or more.

Also make use of 'print preview' option to make sure rows don't break out.

Customer won't do that. This process must be 100% automatic, no user intervention is possible.

 

Link to comment
Share on other sites

I bet you could work up a script that could determine the length of the table, figure out how many full rows you can fit on a page even if the height of the rows are variable and then break the table after that to continue on the next page.  Do you know enough of PHP to do this yourself or do you need a push in the right direction?  Of course, this method would display the table in an odd way, with a few empty rows or whitespace every page, but it should solve your problem.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.