You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/04/24 07:51:52 UTC

[Bug 61031] XSSFWorkbook and SXSSFWorkbook produce different output

https://bz.apache.org/bugzilla/show_bug.cgi?id=61031

Tim Jones <ti...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Tim Jones <ti...@gmail.com> ---
I tried the following to enable shared strings:

            SXSSFWorkbook wb = new SXSSFWorkbook(
                     new XSSFWorkbook(),1000,true,true);
            Sheet sh = wb.createSheet("Sheet");
            Row r1 = sh.createRow(1);
            r1.createCell(1).setCellValue("One");
            r1.createCell(2).setCellValue("Two");
            Row r2 = sh.createRow(2);
            r2.createCell(1).setCellValue("One");
            r2.createCell(2).setCellValue("Two");
            wb.write(output);
            wb.dispose();
            wb.close();

It resulted in a file of 3321 bytes (a new size). There's definitely more going
on here.

-- 
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