Well,
it can delete cells of table, doesn't open in MSOffice. I noted that
inserting text number of bytes have changed.
Any idea ?
Ulf Dittmer-2 wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/HELP-PLEASE-%3A-Bug-inserting-text-in-Word-file-tp20789913p20790326.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]