Forums Register Login

Reading Word Doc

+Pie Number of slices to send: Send
hi,
I am trying to read a word file using poifs. But i am unable to get the out put.
There is no error . but i am not getting the data.




But the byte array length is showing 113 ( as the size of doc)
and the Strring length is showing 113.
But when i print string it is not showing the daata.

Regards,
Raj.
+Pie Number of slices to send: Send
The characters could (at least partly) be unprintable characters. If you're using DoumentInputStream to get ta byte[], then there is not much point in using POI, is there? You could just as well use the java.io package. The way to extract text from a DOC file using POI is documented here.
+Pie Number of slices to send: Send
hi,
i am trying to get the data from word file using HWPFDocument
I searched in google for the jar file.But not.

can you provide me the link to download the jar:

org.apache.poi.hwpf.HWPFDocument class.
+Pie Number of slices to send: Send
Is no one work with msword files

If any one please provide me the link for the jar file.
or
tell me any other way of reading msword files.
+Pie Number of slices to send: Send
According to the HWPF Overview:


HWPF is still in early development. It is in the scratchpad section of the SVN. You will need to ensure you either have a recent SVN checkout, or a recent SVN nightly build (including the scratchpad jar!)


so there is no JAR to download. You have to get the source and build it.
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1659 times.
Similar Threads
java.io.FileNotFoundException
Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration m
Index of the last character of Strings
Thread Flow
TIFF. DOC, EXCEL to PDF Converter
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:54:23.