Tobias Himstedt wrote: > Greetings, > > is asked this already in the oo macro and api forum but it was recommend > to better state the problem here: > > I would like to embed OpenOffice 1.9.79 in a Java program using SWT. So > far everthing works fine, the window appears but when I try (or better > SWT trys) to save the edited document by OleSave ( via SWT > oleClientSite.save(file ...) )it seems the resulting document is not > complete. As soon as I open the so saved document OpenOffice asks me > about a filter to select. > > If I try the same thing by using MS Word it works (nearly) fine.
Unfortunately I don't know anything about the SWT stuff. Is it providing an OLE container that stores the embedded document? And what is the file you mentioned? If this is the result from the "OleSave" call I'm not astonished that you can't open it in OOo because this is a special format only used for embedding it into an OLE client. If you have a storage viewer you could try to have a look into it. You should be able to find a stream that contains the usual OOo package file format. If you embed OOo via Java I really recommend to use the OOo API for saving the content not some OLE stuff that only works on Windows. Best regards, Mathias -- 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]
