https://issues.apache.org/bugzilla/show_bug.cgi?id=47102
Summary: setRowBreak() doesn't work for XSSFSheet
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=23548)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23548)
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();
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]