protected void newPage ( ) { if ( ! bean . isSubreport ( ) ) { try { stream . print ( "</table>\n" ) ; stream . println ( "<p style=\"page-break-before: always\"></p>\n" ) ; if ( bean . getReportLayout ( ) . isUseSize ( ) ) { stream . print ( "<table>" ) ; } else { stream . print ( "<table style='width:100%'>" ) ; } if ( bean . getReportLayout ( ) . isHeaderOnEveryPage ( ) ) { printHeaderBand ( ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
tables need to be broken in order to force a page break .