poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47102] New: setRowBreak() doesn't work for XSSFSheet
Date Mon, 27 Apr 2009 09:28:29 GMT
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: dev@poi.apache.org
        ReportedBy: ytakahashi@bbreak.co.jp


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message