[opensuse] 11.4 x64 and LibreOffice Python Problem
Hi ! I have problem with LibreOffice 3.4.2.6-2.8 (SuSE build from stable repository) and Python/Uno. I wrote a test function in Python which obtains and changes cell content in Calc spreadsheet. Right it is possible to obtain cell content from Python, but it is not possible to change it. Please look at the code below. -------------------------------------------------- import numpy import uno, unohelper def GetCells(n): oDoc = XSCRIPTCONTEXT.getDocument() oSheet = oDoc.getSheets().getByName("Cap") # oSheet is valid object, otherwise Python # would throw exception at lines below. # Doesn't work, nothing happens. oSheet.getCellByPosition(0, 0).setString("SetStringPython") oSheet.getCellRangeByName("C67").setFormula("=100 + 300") oSheet.getCellByPosition(3, 68).setValue(100.235) # Works ! return oSheet.getCellRangeByName("A24").getString() -------------------------------------------------- Anyone can explain what could be wrong? This is also discussion going on on oooforum regarding this issue. http://www.oooforum.org/forum/viewtopic.phtml?t=131402 Helpful people here suggested to replace SuSE build of LibreOffice with stock one from libreoffice.org web site, but it will not work, Standard LibreOffice comes with built-in Python, yet "SuSE integrated" use Python from SuSE. The application I'm writing is quite complex, and it requires numeric & scientific libraries like numpy and scipy. With "standard" LibreOffice and its "built-in" Python interpreter it would be a problem. Thanks in advance for any suggestion(s) Andrei -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
andreil1@starlett.lv