poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Cha <rk661234567...@gmail.com>
Subject Query about WorkbookFactory.create(input)
Date Thu, 29 Oct 2015 06:46:55 GMT
Does WorkbookFactory.create(input) can read both excel-2003 and excel-2007
with out any exception or do we need to use xssf and hssf seperately for
each one


FileInputStream input = new FileInputStream(

"/Users/Desktop/Spice+tool.xls");


Workbook wb = WorkbookFactory.create(input);

Sheet sheet = wb.getSheetAt(0);

System.out.println(String.valueOf(sheet.getRow(11).getCell(0)));

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message