On Thu, 29 Oct 2015, Rohit Cha wrote:
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);
As per http://poi.apache.org/spreadsheet/quick-guide.html#FileInputStream
you should just pass in the file directly - it's quicker and lower memory!
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]