KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Forcing page breaks #2243

Closed Richb201 opened this topic on on Jul 31, 2021 - 3 comments

Richb201 commented on Jul 31, 2021

I have generated a 7 page report. My plan was to have users right click on the screen and ctrl-P to print the report. But I am finding that some of the tables get cut at page breaks. What is the best practice to cause tables to not to have a split at page breaks? Some of these are short tables.

KoolReport commented on Jul 31, 2021

If your tables are short and all are able to fit in a page, you can use the page break in front of table like this:

<div class="page-break"></div>
<?php 
Table::create(array(..));
?>

Here is our documentation for your further reference.

Hope that helps.

Richb201 commented on Jul 31, 2021

works great. thx

KoolReport commented on Jul 31, 2021

You are welcome :)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
solved

None