Print view over multiple pages

By: Phil Cox | Asked: 06/09/2022
ForumsCategory: How-toPrint view over multiple pages
Phil Cox asked 2 years ago
Hi, I note Victor's recommendation for PrintJS. - 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.  
2 Answers
Victor Font answered 2 years ago
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.
Phil Cox replied 2 years ago

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.

Victor Font replied 2 years ago

And does that surprise you?

Phil Cox replied 2 years ago

😂 Not at all. 😂
I'd dearly like to see a solution, though.

Shawn Pery answered 2 years ago

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.

Phil Cox replied 2 years ago

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?

Shawn Pery replied 2 years ago

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.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community