aloizio wrote: > Hi > > I need to merge some Word files that are streams. I receive it as a > InputStream collection and I must generate a OutputStream. > > I am already able to load them as XInputStream into OpenOffice I but How can > I write a new word document that contains the previous merged?
Do you mean that you want to concatenate the documents, i.e. load the first one, attach the second one etc.? It *could* work by using the XDocumentInsertable interface but unfortunately the implementation of this interface in Writer has a bug: it doesn't load from a stream, only from a URL. So you can load the first document from a stream, put all others into a temporary file and insert them using the URL. Or you could wait until the bug is fixed (should be next version past the upcoming 2.0.1 release). I don't remember the Issue ID but I know there is one. Then you can save the whole file to an empty stream and push it into your database. Besr -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
