I've tried again, but the same problem occurred, and the manifestation
was the same...
I don't know if the code is realy correct.

Thanks again!

> -----Original Message-----
> From: Ryan Ackley [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 08, 2004 3:52 PM
> To: POI Users List
> Subject: Re: Example
> 
> 
> I fixed this problem please try again
> 
> 
> ----- Original Message ----- 
> From: "Alexandru, Ionita" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 07, 2004 11:41 AM
> Subject: Example
> 
> 
> > can someone tell me where can I find some read/write word documents 
> > samples?
> > 
> > I have to insert some text in a word document, after a specified 
> > sequence of known text. I've tried some code, but, the 
> final word doc 
> > was corrupted
> > 
> > 
> > 
> ======================================================================
> > ==
> > ======
> > 
> > public static void main(String[] args){
> > try
> > {
> > HWPFDocument doc = new HWPFDocument (new FileInputStream (args[0]));
> > Range r = doc.getRange();
> > 
> > r.insertAfter("this is the text that I wanna insert"); OutputStream 
> > out = new FileOutputStream(args[1]); doc.write(out);
> > 
> > out.flush();
> > out.close();
> > }
> > catch (Throwable t){
> > t.printStackTrace();
> > }
> > }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> ======================================================================
> > ==
> > =========
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to