File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Reading Microsoft Word Document in JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Reading Microsoft Word Document in JAVA" Watch "Reading Microsoft Word Document in JAVA" New topic
Author

Reading Microsoft Word Document in JAVA

Satheeshkumar Subramaniam
Greenhorn

Joined: Jul 06, 2009
Posts: 21
Hi friends,

im using follwing code to read word document in java using apache poi package..



but im getting exception that



how to solve this issue.. please suggest me .. its urgent..


[Henry: Added Code Tags]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38007
    
  22
There's no such thing as "urgent" here. And we can't read your code without code tags.
Himanshu Kansal
Ranch Hand

Joined: Jul 05, 2009
Posts: 257
Is Hello.doc a valid word doc?
Is it placed where it is supposed to be?

And yes, as you cant go to a meeting without clothes, your code cant come here without the CODE tags
Regards


Experience and talent are independent of age
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18529
    
  40



This part doesn't make sense -- if you don't close the braces, then it is not valid syntax, then you can't compile it, and hence, you can't run it.

BTW, I added the code tags for you, but it looks like it is messy due to a combo of spaces and tabs.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Moving to Other Open Source Projects.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

I am Extremely curious to know if the code does compile :



My logic says it should not, since i do not have those libraries, i cannot verify so,
but i do feel that its against the schematics of the language itself.


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading Microsoft Word Document in JAVA
 
Similar Threads
Read .doc file using POI Library
java.io.FileNotFoundException
Apache POI - HWPF writing a String
Facing issue with org.apache.poi.POIDocument: method init()V not found
TIFF. DOC, EXCEL to PDF Converter