wimtracking2 Posted June 28, 2017 Report Share Posted June 28, 2017 I have created a gallery report and I need to allow for only 30 results to print per page using browser print. I want the user to be able to print all of the query results at once so I don't want to set it up to show 30 records per page and then make the user scroll to the next page and hit print again. I believe the best way to achieve this I need to insert a page break after every 30 records. Is this achievable? If so, how? Thank you. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 3, 2017 Report Share Posted July 3, 2017 I would say create another report page and set it up just like what you want to have for print and then put a link on your report to open this page as pop up and let user print this page instead. Quote Link to comment Share on other sites More sharing options...
wimtracking2 Posted August 2, 2017 Author Report Share Posted August 2, 2017 This worked: window.onload = function () { var table = document.getElementById("caspioform").getElementsByTagName("table")[0]; table.style.pageBreakInside = "auto"; for (var row of table.rows) { row.style.pageBreakAfter = "auto"; row.style.pageBreakInside = "avoid"; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.