How to print a single column and have it stack results on a single page?
How to print a single column and have it stack results on a single page?
Hi!
I have been asked to allow users of our web app to print a single column of data. The issue for them is now that the single column prints across multiple pages, and they would prefer that it "wrap" or "stack" on each page (more efficient use of space).
So printed pages currently look like this:
___________.
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
__________ page 1
___________.
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 17
| 18
____________page 2
and I'm wondering if it's possible to print that single column like this (underscores just for spacing):
___________________.
| 1 ____ 8 ____ 17
| 2 ____ 9 ____ 18
| 3 ____ 10
| 4 ____ 11
| 5 ____ 12
| 6 ____ 13
| 7 ____ 14
| 8 ____ 15
| 9 ____ 16
___________________page 1
I couldn't find enough clues to figure it out; maybe it's best to try to do it without DataTables plugin? Thank you!
Answers
You would need to do something with
buttons.exportData()
, orexportOptions.customizeData
. This thread here has some examples of the kind of things you can do, so may be useful.Colin
Ok thank you, I will look more into that direction and update this if I figure it out.