Is it possible to have an autonomous block of text that cannot be split across a page break?
Hi Roddy,
I am happy to say, yes you can
VelocityReport works with CSS and CSS has styles to control this behavior, one of them is page-break-inside.
So you could create a template like so where you define the style and use it.
<html>
<head>
<style>
.no-page-break { page-break-inside: avoid; }
</style>
</head>
<body>
#foreach($row in $myData)
<div class="no-page-break">
</div>
#end
</body>
</html>
Hope this helps.
That is fab
Many thanks.