DearS,

I'm currently using poi3.0.1 to read xls files.
I want to read xlsx files also.So I have downloaded the poi3.7 and compiled
the code.The earlier code(hssf) is working fine to read xls file. 
I have written the code as below to read xlsx file.

    InputStream stream = myFile.getInputStream();
    XSSFWorkbook workbook = new XSSFWorkbook(stream);

This code is gving the below error.

org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
        at
org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFact
ory.java:61)
        at
org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:277)
        at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:186)
        at
org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:1
89)

Please help me how to resole this issue.

Many thanks in advance
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Reading-xlsx-file-using-poi3-7-tp3280913p3280913.html
Sent from the POI - User mailing list archive at Nabble.com.

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

Reply via email to