What do you mean by "document is altered"? Inserting
text is altering the document, isn't it?

Also, you aren't really ignoring the exception, right?

Ulf

--- Calimero <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> i try to insert text in Word file like that.
> Document is altered when it
> contains tables / images or graphics :
> 
> try {
>     HWPFDocument doc = new HWPFDocument(is);        
>    
>     Range range = doc.getRange();
>     range.insertBefore("Hello world");
>     doc.write(outputStream);
> } catch(Exception e){}



      

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

Reply via email to