• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Word Document ?

 
vidhya jay
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to read the contents of word document and display it on the console.
As i used Jakarta POI and imported the following packages :

import org.apache.poi.hdf.extractor.WordDocument;
import org.apache.poi.hdf.extractor.util.*;
import org.apache.poi.hdf.extractor.data.*;
import org.apache.poi.hdf.extractor.*;

import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.poifs.filesystem.POIFSDocument;
import org.apache.poi.poifs.filesystem.DocumentEntry;
import org.apache.poi.poifs.filesystem.DocumentNode;

But iam not able to proceed with my requirement as how to read and display Word Document ?

Regards,
Vidhya
 
Ashish Vegaraju
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Vidya,

its good to see that u atleast tried to do something

if u r finding any difficulties in the code u can follow the link provided below, here u can download a zip file in which sample java files r there which can extract data from a word file. the link is :
textmining

cheers
Ashish.
[ November 05, 2004: Message edited by: Ashish Vegaraju ]
 
vidhya jay
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashish,

Thanks a lot !

I was able to read word document and print it on the console. Hurray !!
I used the jar File mentioned in http://www.textmining.org

Cheers,
Vidhya.
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i want to edit my word document which is on the server and after editing it i want to save it on the server from the client machine. Is it possible using java or POIFS...

can anybody provide code for it...

thanks in advance
nitin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!