Your code tries to initialize HSSFWorkbook from ObjectPool OLE stream
abut this is wrong.

I think, the best way to do what you want is to:
1. create POIFSReader and register listener for all streams it returns
2. fetch directory name for those streams that end with "Workbook",
convert it to DirectoryNode
3. Invoke HSSFWorkbook constructor passing this directory to it
4. Beware of charts, embedded to word, they have Workbook stream name too

Example, showing how to deal with POIFS events can be found in
http://svn.apache.org/viewvc/poi/tags/REL_3_1_BETA2/src/examples/src/org/apache/poi/hpsf/examples/ReadCustomPropertySets.java?revision=653487&view=markup

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to