poi-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: how to read xlsx with SXSSF?
Date Fri, 04 May 2012 00:44:39 GMT
On Fri, 4 May 2012, admin dd wrote:
>        Workbook wb = WorkbookFactory.create(new File("z:/sxssf.xlsx"));
>        Workbook workbook = new SXSSFWorkbook((XSSFWorkbook)wb);
>        Sheet sheet = workbook.getSheetAt(0);
>         for (Row row : sheet) {
>             System.out.println(" Row " + row);
>         }

SXSSF is for writing. Use either regular XSSF, or SAX for reading

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@poi.apache.org
For additional commands, e-mail: general-help@poi.apache.org


Mime
View raw message