https://bugs.documentfoundation.org/show_bug.cgi?id=130888
Andreas Heinisch <andreas.heini...@yahoo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas.heini...@yahoo.de --- Comment #2 from Andreas Heinisch <andreas.heini...@yahoo.de> --- Hi! I investigated the error and I think the custom document property should be created using something like: Sub AddNewDocumentProperty(UDProp As String, Value As String) Dim oUDP oUDP = ThisComponent.getDocumentProperties().UserDefinedProperties If NOT oUDP.getPropertySetInfo().hasPropertyByName(UDProp) Then oUDP.addProperty(UDProp, _ com.sun.star.beans.PropertyAttribute.REMOVEABLE , _ Value) End If End Sub Without the REMOVEABLE flag, the property cannot be removed. After I add a property using the above method, even the dialog in Menu File/Properties/[Custom Properties] shows it. In addition, Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: b336dca9864390a0e19ae3f4518725eba6be2ffc CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: CL shows a BASIC error message with com.sun.star.beans.NotRemoveableException. Possible options for the property options are: MAYBEVOID 1 The property value can be void. BOUND 2 A PropertyChangeEvent will be fired to all registered property change listeners when the value of this property changes. CONSTRAINED 4 A PropertyChangeEvent will be fired to all registered vetoable change listeners when the value of this property changes. TRANSIENT 8 The property value is not saved with the document. READONLY 16 The property value is read-only. MAYBEAMBIGUOUS 32 The property value may be ambiguous. MAYBEDEFAULT 64 The property can be set to default. REMOVEABLE 128 The property can be removed. This used to be called REMOVABLE. OPTIONAL 256 The property is optional. -- You are receiving this mail because: You are the assignee for the bug.