aspose file tools
The moose likes Java in General and the fly likes How can i read Word documents Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How can i read Word documents " Watch "How can i read Word documents " New topic
Author

How can i read Word documents

Ramesh Rao
Greenhorn

Joined: Jan 23, 2001
Posts: 6
hi friends,
Can any one help me how to read MSWord files using IO Streams.
When i have tried it is giving in binary format.
I have used both byte and character streams.
Thanks in advance
ramesh
Mirko Froehlich
Ranch Hand

Joined: Aug 21, 2000
Posts: 114
Ramesh,
I am not sure I understand what exactly you are trying to do. MS Word uses a proprietary binary file format, so unless your application uses a special Java library to deal with Word files (if this exists, but I am pretty confident that it does), you won't be able to do anything with these files.
-Mirko

Originally posted by Ramesh Rao:
hi friends,
Can any one help me how to read MSWord files using IO Streams.
When i have tried it is giving in binary format.
I have used both byte and character streams.
Thanks in advance
ramesh

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Why don't you post this on a MicroSoft forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
It occurs to me that (a) StarOffice is supposed to be able to read and edit MS Word files, and (b) the source code for StarOffice is freely available at www.openoffice.org. I don't know how easy it might be to find what you're looking for, but it seems like a good place to try. Good luck.


"I'm not back." - Bill Harding, Twister
Ramesh Rao
Greenhorn

Joined: Jan 23, 2001
Posts: 6
Mirko Froehlich,
Actually i am trying to extract data from word file and use it and use it for appending this text other files.

Jim, Thank u for giving for this information. i will try it and let u know.

Ramesh
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can i read Word documents
 
Similar Threads
Streams and EJB
Cascading Streams(Cipher,GZip,FileInput,ProgressMonitor)
App hung at waitFor() method.
Why is Runtime.getRuntime().exec() not working in JSP?
Convert OutputStream data to String