We have been using a macro to assign the document background color since version 24.8.2 or even earlier. The macro has stopped working with the latest upgrade:
Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 4; OS: Windows 11 X86_64 (10.0 build 22000); UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL threaded
This is a snippet of the code with the last line causing the macro to fail:
R = Doc.Sheets.getByName("Setup").getCellRangeByName("DocBgRed").Value
G = Doc.Sheets.getByName("Setup").getCellRangeByName("DocBgGreen").Value
B = Doc.Sheets.getByName("Setup").getCellRangeByName("DocBgBlue").Value
keyNodeColor.setPropertyValue("Color", rgb(R,G,B))
This is the error message:
BASIC runtime error.
An exception occurred
Type: com.sun.star.beans.UnknownPropertyException
Message: Color.
Can someone please point me in the right direction.
Thank you