poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calimero <calimero.de....@gmail.com>
Subject Re: Bug inserting text in Word file
Date Tue, 02 Dec 2008 11:30:03 GMT

No i don't have any exception. Word version is 2003 but i converted file to
97-2003 rtf (*.doc) format and occurs same bug !!!


Calimero wrote:
> 
> 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 <calimero.de.bcn@gmail.com> 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: user-unsubscribe@poi.apache.org
>> For additional commands, e-mail: user-help@poi.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/HELP-PLEASE-%3A-Bug-inserting-text-in-Word-file-tp20789913p20790349.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message