You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Michael Prichard <mi...@mac.com> on 2008/01/22 17:39:14 UTC
Error pulling text from Word doc.
Hello All.
I am trying to pull text from a word doc and I am getting this error:
java.lang.IllegalStateException: Table Stream '0Table' wasn't found - Either the document is corrupt, or is Word95 (or earlier)
It dies here:
hwpf = new HWPFDocument(is);
My code seems to work on other word docs. I am also using the latest POI libs. Any ideas?
Thanks!
MIchael
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Error pulling text from Word doc.
Posted by Daniel Noll <da...@nuix.com>.
On Wednesday 23 January 2008 03:39:14 Michael Prichard wrote:
> Hello All.
>
> I am trying to pull text from a word doc and I am getting this error:
>
> java.lang.IllegalStateException: Table Stream '0Table' wasn't found -
> Either the document is corrupt, or is Word95 (or earlier)
>
> It dies here:
>
> hwpf = new HWPFDocument(is);
>
> My code seems to work on other word docs. I am also using the latest POI
> libs. Any ideas?
The error message is pretty informative IMO. Word 95 format isn't supported
by POI, sadly.
On the other hand I get the impression that Word 95 might be a simpler format
than the one POI does support. I'm sure I saw some Java code around
somewhere for reading it, but I can't remember where... (Nutch maybe?)
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org