Apache OpenOffice (AOO) Bugzilla – Issue 7090
Error Saving HTML Document with Black Cloth Background
Last modified: 2002-11-19 21:07:58 UTC
Howdy, When saving a fixed width, two column HTML Document with Black Cloth Background, the initial save works OK, but follow-on saves yield the following error: "Error saving the document test.html Basic runtime error. an exception occurred. Type com.sun.ucb.ContentCreationException Message: No Content! the file updates properly. Other backgrounds do not seem to cause this error. The highlighted code in the error window seems to be focused on the following function, pointing to the Ucb.Copy string. Function CopyFile(ByVal SourceUrl as String, TargetDir as String) Dim sFileName as String Dim sNewFileUrl as String sFileName = FileNameoutofPath(SourceUrl) sNewFileUrl = TargetDir & sFileName - > oUcb.Copy(SourceUrl, sNewFileUrl) CopyFile() = sFileName End Function Regards, Jim
Thanks for posting Jim. Could you please attach the HTML file ( please zip it up first! ) that we can use to reproduce this problem? Thanks.
Created attachment 2542 [details] Example file that would not save
Thanks Jim for the file. Do you have a copy of the background that causes this error? Could you please attach it to this issue?
Jim, could you please provide the values of SourceUrl, TargetDir, sFileName, sNewFileUrl. The message of the exception thrown might be hint for a malformed URL. I reduced your problem to the following two lines of code and it works fine for me, even if called multiple times. oUcb = createUnoService( "com.sun.star.ucb.SimpleFileAccess" ) oUcb.copy( "file:///d:/temp.html", "file:///d:/wine%20tasting.html" )
Hi Jim, having not heard anything back from you since quite some time, I'm now resolving this issue as 'works for me', reassign it to you, and will close it. You're free to reopen this issue any time you like, if you don't agree or have more input to resolve it otherwise. Regards, Matthias
Reopening for reassignment (when will I ever learn...)
Reassigning to submitter...
Resolving as 'works for me'...
Closing...