You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by venkat sunil m <su...@yahoo.co.in> on 2013/05/31 22:56:58 UTC

Re: openxml4j InvalidFormatException

@ Venkat Sunil M
XLSX EXCEPTION
I hope many people are looking for a solution for the
"InvalidFormatException", here we go.

fileInputStream = new FileInputStream(fileName);
OPCPackage opcPackage = OPCPackage.open(fileName);
XSSFWorkbook xssfWorkBook = new XSSFWorkbook(opcPackage);

If you getting "InvalidFormatException", create an instance for OPCPackage
like shown above and pass it. It works.



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/openxml4j-InvalidFormatException-tp2307028p5712871.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org