On Tue, 3 Aug 2010, Osmosis Paul wrote:
       XSSFReader.SheetIterator iter = (XSSFReader.SheetIterator)
xssfReader.getSheetsData();
       int index = 0;
       while (iter.hasNext()) {
           InputStream stream = iter.next();
           XSSFWorkbook wb = new XSSFWorkbook(stream);  //Here have the
error

I'm not entirely sure what you're trying to do, but the above line really will never work....

If you want to use XSSFWorkbook, then you have to give it the whole file, and you then don't need to touch XSSFReader

If you want to use XSSFReader, then you can't use XSSFWorkbook, and you need to handle the sheet yourself

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to