Apache OpenOffice (AOO) Bugzilla – Issue 82701
dev guide example is wrong
Last modified: 2013-02-24 21:10:18 UTC
Hi the code sample for storing is wrong http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_1_5_3_Storing_Documents // Build necessary argument list for store properties. // Use flag "Overwrite" to prevent exceptions, if file already exists. com.sun.star.beans.PropertyValue[] lProperties = new com.sun.star.beans.PropertyValue[2]; lProperties[0] = new com.sun.star.beans.PropertyValue(); lProperties[0].Name = "FilterName "; lProperties[0].Value = sFilter; lProperties[1] = new com.sun.star.beans.PropertyValue(); lProperties[1].Name = "Overwrite "; lProperties[1].Value = new Boolean(true); There should not be spaces at the end of the lProperties[x].Name strings
fixed in the not yet published wiki version of the DevGuide jsc -> lgodard: please don't start a discussion when the guide will be available. It' will be soon :-)
;-) thx Juergen
closed