How do I place a record into a new page in JasperReports if it overflows the last one?

前端 未结 1 940
傲寒
傲寒 2020-12-21 11:25

I\'m using Jaspersoft Studio 6.2.0 and JasperReports 6.2.0 library.

I have a report and in the details section some of the records in the table may

相关标签:
1条回答
  • 2020-12-21 11:44

    This is normally avoided by using splitType="Prevent" on the JRBand

    Prevent The band starts to render normally, but if the bottom of the page is reached without finishing the band, the whole contents of the band that are already being laid out are moved to the next page. If the band does not fit on the next page, the split occurs normally, as band split prevention is effective only on the first split attempt

    example

    <detail>
        <band height="20" splitType="Prevent">
        ... your text fields ..
        </band>
    </detail>
    
    0 讨论(0)
提交回复
热议问题