apache POI - HWPF search&replace

Hi,

I'm looking for a way to find and replace strings in a MS word file.

Actually I was not able to find the right method to do that in the apache poi library api. Could anyone help me?

Basicly my application take a word file in input (template) and replace

defined keys (like "${AMOUNT}") with values. To do that, I iterate through

the paragraphs and look for my pattern. Then I need some methods like

deleteString(start, begin) and insertAt(offset, text).

Or is that another way to do the same thing?

thanks

othman.

[581 byte] By [Servant@AKa] at [2007-11-26 18:55:27]
# 1
> Actually I was not able to find the right method to> do that in the apache poi library api. Could anyone> help me? Didn't anybody at the POI mailing list help you?
CeciNEstPasUnProgrammeura at 2007-7-9 20:33:41 > top of Java-index,Java Essentials,Java Programming...
# 2

> > Actually I was not able to find the right method

> to

> > do that in the apache poi library api. Could

> anyone

> > help me?

>

> Didn't anybody at the POI mailing list help you?

no.

can someone here help if you know well the poi library ?

that would be nice

thanks.

Servant@AKa at 2007-7-9 20:33:41 > top of Java-index,Java Essentials,Java Programming...
# 3
> no.What did they say?
CeciNEstPasUnProgrammeura at 2007-7-9 20:33:41 > top of Java-index,Java Essentials,Java Programming...
# 4

> > > Actually I was not able to find the right method

> > to

> > > do that in the apache poi library api. Could

> > anyone

> > > help me?

> >

> > Didn't anybody at the POI mailing list help you?

>

> no.

I assume you asked there. Right?

zadoka at 2007-7-9 20:33:41 > top of Java-index,Java Essentials,Java Programming...