poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <n...@torchbox.com>
Subject Re: Exception creating HWPFDocument
Date Wed, 17 May 2006 11:35:27 GMT
On Wed, 17 May 2006, Gascoigne Thomas wrote:
> I'm just trying to start testing some poi functionality but am falling
> at the first hurdle:
>
> java.lang.NoSuchMethodError:
> org.apache.poi.hwpf.model.TextPiece.getCP()I

I would suspect that you have some sort of mis-match between your POI jar 
files. Make sure you have the latest ones, and only the latest ones on 
your classpath

> Would also appreciate some example code that shows the basics of reading 
> in a Word document and outputting it as a (text) string.

Just use this:
http://jakarta.apache.org/poi/apidocs/org/apache/poi/hwpf/extractor/WordExtractor.html

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Mime
View raw message