Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

  • 5 weeks later...

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";



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...