libreoffice-calc

Does LibreOffice Calc support JSON file importing/sorting?

点点圈 提交于 2019-12-03 22:09:27
I've been trying to import a couple of .json files into LibreOffice Calc. Although I can get the raw data in, it isn't sorting as I would think it might (by placing different pieces of info into each cell). Does LibreOffice provide support for importing JSON files and sorting them out in cells? (In other words, import + sort)? If there doesn't seem to be direct support for this, would converting to CSV be the next logical step in order to get the data into Calc? Had the same problem myself (that's how I found this question). So, for the next person finding this - the answer is no - LibreOffice

How to define dynamic ranges on Calc (or Excel)?

一世执手 提交于 2019-12-03 13:04:27
问题 Let's say I have a Libreoffice.org Calc (maybe this goes for MS Excel too) object defined as the range $Sheet1.$A$1:$A$4 . I also have declared a constant with value 1. For this mockup purpose, let's call it startingLine . Both objects are properly defined in the Define Names dialog (shortcut: Ctrl+F3). What I would like to do is to turn the lines of the defined range into variables. In my mind, all it'd take would be to define it like this: $Sheet1.$A$startingLine:$A$4 , but this doesn't

Calling C shared library function from LibreOffice Basic

丶灬走出姿态 提交于 2019-12-02 18:24:33
问题 I'm trying to call a C shared library function from LibreOffice Basic, but I always get "Basic Runtime Error. Not implemented" when it hits the Declare line. It's just for a fun thing but being unable to do it is bugging me. The Declare statement looks like this: Declare Function score_word Lib "libscrabblescore.so" (ByRef word As String, ByRef bonus As String) As Integer The C function delaration looks like this: int score_word(char* word, char* word_bonuses) (Maybe ByRef word As String is

Calling C shared library function from LibreOffice Basic

China☆狼群 提交于 2019-12-02 10:13:24
I'm trying to call a C shared library function from LibreOffice Basic, but I always get "Basic Runtime Error. Not implemented" when it hits the Declare line. It's just for a fun thing but being unable to do it is bugging me. The Declare statement looks like this: Declare Function score_word Lib "libscrabblescore.so" (ByRef word As String, ByRef bonus As String) As Integer The C function delaration looks like this: int score_word(char* word, char* word_bonuses) (Maybe ByRef word As String is not the right translation of char* word? I can't find documentation on how to use char* parameters to

How to use LibreOffice functions into Basic?

夙愿已清 提交于 2019-12-01 21:38:17
I've asked here about the good way to do so. Now I'm trying the following code found here , and get some unexpected errors. I suppose I'm not using it the correct way. Any idea ? Sub Main Dim aResult Dim aFunc Dim oRange aFunc = GetProcessServiceManager().createInstance("com.sun.star.sheet.FunctionAccess") aResult = aFunc.callFunction("SUM", Array(1, 2, 3)) ' ---- Works OK Print aResult aResult = aFunc.callFunction("MDETERM", Array(2, 5, 8)) ' ---- IllegalArgumentException Print aResult oRange = ThisComponent.sheets(0).getcellrangebyname("B4:B6") aResult = aFunc.callFunction("ZTEST", Array

Python or LibreOffice Save xlsx file encrypted with password

拈花ヽ惹草 提交于 2019-12-01 01:23:33
I am trying to save an Excel file encrypted with password. I have tried following the guide on https://help.libreoffice.org/Common/Protecting_Content_in - and works perfectly. However, this is in the GUI, but I am looking for a solution using the command line interface in headless mode. I have looked at the man libreoffice , but I could not find anything in there. Likewise I have looked at the documentation of the Python 3 library openpyxl , but I did not find anything useful there either. Is it possible to save an Excel 2007+ file encrypted with a password on Ubuntu 14.04/16.04 using the