On Thu, 1 Nov 2012, ven12344 wrote:
I am getting this exception, when I am trying to read a word document, can
anybody please let me know what is the problem.

org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data
appears to be in the Office 2007+ XML. You are calling the part of POI that
deals with OLE2 Office Documents. You need to call a different part of POI
to process this data (eg XSSF instead of HSSF)

The exception message is fairly clear... You've called the OLE2 code with an OOXML based file. You need to use XWPF to process .docx files, HWPF only works for the older .doc ones

Nick

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

Reply via email to