Hi Teodor, Excel has a limitation of 65534 rows per sheet. I am trying to insert a page break every 65534 rows by using a dummy group. In my sample report I try to add a page break every 1000 rows by using the group expression as new Integer(($V{REPORT_COUNT}.intValue()-1)/1000). When exporting I set the following also exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,true); However, I find that the page break is occurring about every 110 rows. I am not sure what I am doing wrong. I am wondering if this is because the page height is not sufficient. If I set the group expression as new Integer(($V{REPORT_COUNT}.intValue()-1)/100) then the page break is occurring correctly every 100 rows. Please find attached my report template. [file name=Sample.jrxml size=22029]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Sample.jrxml[/file] Post edited by: sundevil, at: 2006/11/13 15:11