You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Kalimero <jl...@pacifico-meetings.com> on 2008/04/09 18:52:22 UTC

Problem with range.insertBefore

Hi everybody,

i try to insert word files in a ZIP. It's ok when i leave files like i put
them in database, but problems could occure if i modify them :

- first :  when there is a table in a word file, i've got an error
(Exception message = null) :

HWPFDocument doc = new HWPFDocument(is); // is = Inputstream from
resultSet.getBinaryStream()

Range range = doc.getRange();

if ( this.isOpcionWord(Integer.valueOf(0)) )
    range.insertBefore("T\355tulo :
"+comunicacion.getTitulo()+SEPARADOR_LINEA);

doc.write(os); // os = ZipOutputStream where occures bug


- second : in some files, content desappears... (0 bytes in ZIP file)

Well, it's make me crazy !!!

Please help it's urgent !


-- 
View this message in context: http://www.nabble.com/Problem-with-range.insertBefore-tp16590567p16590567.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