Hi, I note Victor's recommendation for PrintJS. https://printjs.crabbly.com/ - I wonder if that would be an appropriate solution for the following use-case, or is there a better way?
I have a table view with 70ish rows that needs to be printed. So the print solution needs to break the table at the relevant point and continue on the next page.
In addition, the number of columns means that initially it is wider than A4 and the scale therefore needs to be adjusted to fit.
Is there a tool or (better still) Formidable Forms setting that will accomplish this?
Or am I forced to do it in print css?
Very many thanks,
Phil.
I've never found an effective way to page break a HTML table. There is a CSS page-break directive available you could try, but I have no idea if it will work with a table. https://www.w3schools.com/cssref/pr_print_pageba.asp
Thanks Victor. I had a go at accomplishing this in CSS but I found the printed output depended upon which platform was being used. The output on a Mac was completely different to printing from Windows.
And does that surprise you?
😂 Not at all. 😂
I'd dearly like to see a solution, though.
You could use WPdatatables and the FF integration. You can display let's say 25/70 rows on your table, but the print button will print all 70 rows (as long as the user doesn't filter the table). If the user does filter the table, clicking the print button will only print the filtered rows that are displayed. Not sure if that's what you're after.
Thanks Shawn, I had a go with WPdatables a while ago and I remember I had a poor experience. I couldn't get even get a small example table to display and print properly. I wonder if things have improved over the last few months and it's worth another try?
I've used it on a few different projects now, and it definitely has its corks. Sometimes I ask myself what the developers were thinking by only allowing the date column to be sorted alphabetically? With that being said, I haven't had any issues with the export/print feature.
Please login or Register to submit your answer