Harsh,

On Thu, Jun 7, 2012 at 6:35 AM, Harsh Chhabra <[email protected]> wrote:

> thanx @biju.
> now its working everything well,i have used two different poi to read
> tables in doc and docx files.
> HWPF for doc file and XEPF for docx file,now is there ant way,one code
> work for both kind of file ?
>

There is no api in poi that has support of HWPF+XWPF.

But Tika gives the support. i tried for getting the text from both doc and
docx files, it works. i used the parseToString method in Tika which reads
both doc and docx file contents.
Try playing around with Tika n see if it solves your purpose.


>
> On Mon, Jun 4, 2012 at 3:03 PM, Biju Balakrishnan <[email protected]>wrote:
>
>> harsh,
>> Could u be more clear what you want?
>>
>> On Mon, Jun 4, 2012 at 2:56 PM, Harsh Chhabra <[email protected]>wrote:
>>
>>> hey everyone can you tell me how to read word document file in java with
>>> proper format.
>>> tell me the steps which i need to do,in order to do so.
>>>
>> there are two API available to read word doc files in java. which pretty
>> much does everything needed
>>
>>    - Apache Poi
>>    - Tika
>>
>> Did u try these?
>> if u did what more do you need?
>>
>>
>> --
>>  *Biju
>>
>> *
>>
>> --
>> Mailing list guidelines and other related articles:
>> http://lug-iitd.org/Footer
>>
>
>  --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>



-- 
*Biju*
**

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to