Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POI Word 2007+ .docx

 
Dan Evan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have been trying for a day or so now to find an example of importing a .docx file for analysis of text

I have been unable to achieve it so far and have received many different errors, i fear it is something simple that is wrong but i have looked at it for so long it is all a blur now I have attached the code, any suggestions will be greatly appreciated

EDIT: POI is 3.7 with OOXML and Schemas




Thanks
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The XWPFWordExtractor class has no constructor that takes an InputStream; where did you get the idea that it does? You'll need to pass it an XWPFDocument (which does have such a constructor).
 
Dan Evan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks...

I looked further in to it and have posted the example as there are few i could find online



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic