How to handle page break comes unexpectedly
-
Hi sir,
How to check page break in report?
-
I am not sure I get it, please share a playgound demo to clarify things.
You can use css to avoid page breaks inside an element
https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-insideYou can also use css to intentionally add page break before/after specific element
https://developer.mozilla.org/en-US/docs/Web/CSS/break-before
-
above table break into next page but how to add border bottom for last element of td before each page break.How to check last elment of td in each page.
i have tried to put below styles but doesnot work
@media print {
.item_group_table tr:last-child {
border-bottom: 1px solid #4fc3ec;
}
}/* Add a bottom border to the <tbody> element */
.item_group_table tbody {
border-bottom: 1px solid #4fc3ec;
}please help?
-
There is likely no magic css that would let you add specific style at the end of every page.
You can try using tfoot
https://playground.jsreport.net/w/anon/Tuer457BOr merge that line using pdf utils. Like you would be merging a footer.
https://playground.jsreport.net/w/admin/kMI4FBmw
-
yes sir it is woking but there is some gap between tbody tfoot
also how to remove tfoot border bottom for last page?