Created attachment 23548 [details] Result Spreadsheet: no page break set The method "setRowBreak()" doesn't work for XSSFSheet. The following code tries to create a sheet whose page break is set between the row "aaa" and "bbb". However, the result spreadsheet has no page break at print preview. Code: ======================================================= XSSFWorkbook workbook = new XSSFWorkbook(); Sheet sheet = workbook.createSheet(); sheet.createRow(0).createCell(0).setCellValue("aaa"); sheet.createRow(1).createCell(0).setCellValue("bbb"); sheet.setRowBreak(0); String fileName = "./result.xlsx"; FileOutputStream fileOut = new FileOutputStream(fileName); try { workbook.write(fileOut); } catch (Exception e) { System.out.println(e); } finally { fileOut.close(); }
*** This bug has been marked as a duplicate of bug 48314 ***