wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes How to convert a .doc file to .txt file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to convert a .doc file to .txt file" Watch "How to convert a .doc file to .txt file" New topic
Author

How to convert a .doc file to .txt file

R Karthick
Greenhorn

Joined: Feb 11, 2008
Posts: 11
Hi,
I have a .doc file which contains data inside a table. Now i want to parse the table to get the table values. Normal Parsing is not working for table( I mean using String tokenizer) because it is giving some unwanted special characters while parsing the table. So I just want to convert that .doc to .txt file, then only it is easy to split the values. But i can't make it! Can any one please tell me how to parse a MS WORD TABLE Values?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Apache POI is the API you can use.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41085
    
  43
http://poi.apache.org/hwpf/quick-guide.html in particular tells you how to extract text from a Word document.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert a .doc file to .txt file
 
Similar Threads
File parser application
its urgent..pls help me out!!!
Validating xml against dtd
word - txt upload help
creating word document from java application