Thanks for this reply, I thinks there is some problems in the "write" metod of the hwpfdocument.
In fact, some datas () seem to be forbidden when we create the new POIFSFileSystem because if i replace this code of the "write" function: POIFSFileSystem pfs = new POIFSFileSystem(); pfs.createDocument(new ByteArrayInputStream(mainBuf), "WordDocument"); pfs.createDocument(new ByteArrayInputStream(tableBuf), "1Table"); pfs.createDocument(new ByteArrayInputStream(dataBuf), "Data"); with this: pfs.createDocument(new ByteArrayInputStream(_mainStream), "WordDocument"); pfs.createDocument(new ByteArrayInputStream(_tableStream), "1Table"); pfs.createDocument(new ByteArrayInputStream(dataBuf), "Data"); The result is ok with good chapters. But in this case i use the mainstream and the tablestream of the input document and im not using the news datas... so it's useless. So i think there is a problem generating these two streams. But i'm not so good to give more informations about that. Steph. -- View this message in context: http://www.nabble.com/Problem-to-generate-word-document-tp19277004p19278147.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]
