Good morning,
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
Unfortunatly I don't know anything about ole nor openoffice. But according to the (example) source code I first create a so called OleFrame:
oleFrame = new OleFrame(sShell, SWT.NONE);
within that frame an oleClientSite object is created, which specifies the actual ole application
oleClientSite = new OleClientSite(oleFrame, SWT.NONE, "opendocument.WriterDocument.1");
you mentioned? If this is the result from the "OleSave" call I'm not
The file is a java.io.File which you pass to
oleClientSite.save(file, oleYesOrNor)
whereas boolean oleYesOrNo specifies if you would like to include ole information.
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.
Not really sure what you mean here. The file that is saved is a "sort of" an openoffice document. I unzipped it and it contains several xml documents, including a content.xml where I can find my bla bla editings. Then I compared it with a "normal saved" document and I found that it was missing some pieces, e.g., the thumbnails directory and the meta.xml file.
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.
Is this still possible when using ole stuff?
Thanks -- Tobias
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
