How to read excel2007 file or both .xls and .xlsx files using apache poi
Joined: Jun 29, 2010
How to read a .xlsx files using poi ,i am able to read only .xls files using poi and if i read a .xlsx file it throws an exception so give me some sample code to read both .xls and .xlsx files using poi .
Joined: Mar 22, 2005
Note that POI versions before 3.5 do not support XSLX.
If you are, in fact, using a POI version that does support XLSX, post the code you're using. Knowing what exception is thrown would also be useful.