Apache OpenOffice (AOO) Bugzilla – Issue 48752
OfficeBean File Saving Problem
Last modified: 2013-02-24 21:07:32 UTC
OfficeBean is unable to save document which is opened from a file that is stored under a directory that contain a space for its path name. Here are the steps to reproduce the problem: 1. Create a new Writer document and save it as a .odt file under a directory which its path name contains a space (e.g. C:\doc folder\Test.odt) 2. Download the SDK from http://download.openoffice.org/680/sdk.html 3. Add a button to load the file created in step 1. Implementation of the action should be like this: aBean.loadFromURL("file:///C:/doc folder/Test.odt", null ); 4. Compile it and run it. 5. Click on the button created in step 3 to load the document. The document loaded successfully. 6. Modify it and save it (Ctrl-S), the bean terminated and error occur I am not sure if this problem occurs also in "standalone Writer" (not the bean). Could you please explain what the problem is and how to solve it? Thank you very much! Could you please explain what the problem is and how to solve it?
I change the DevGuide/OfficeBean example by adding the lines aBean.loadFromURL( "file:///myHome/temp/with spaces/mydoc.odt", null ); aBean.aquireSystemWindow(); and removed the line aBean.loadFromByteArray( buffer, null ); in the code for the "loadFromBuffer" button. Then I compiled and started the Bean. Afterwards I pressed the button and the document appeared as expected. Finally I changed the content and press CTRL-S. All this without problem, what do I miss ?
Hi, I tried again by downloading the latest release of OpenOffice (m100) and SDK (m91). Everything seems alright. I guess the problem is no longer exists. Thank you for your attention.