libreoffice


Given an ISO 8601 week number, get date of first day of that week in LibreOffice Calc spreadsheet

被刻印的时光 ゝ 提交于 2020-01-24 08:47:08
问题 LibreOffice Calc spreadsheet offers a function ISOWEEKNUM to return the standard ISO 8601 week number of the specified date. I want the opposite. ➠ Given a standard week number, give me the date of the first day of that week (the Monday date). Passing integers is acceptable. Also nice if able to pass a string in standard format. Like this: DATE_OF_ISOWEEKNUM( 2017 , 42 ) ➝ date of Monday of week 42 in week-based year 2017 DATE_OF_ISOWEEKNUM( "2017-W42" ) ➝ date of Monday of week 42 in week

How to call an existing LibreOffice python macro from a python script

折月煮酒 提交于 2020-01-17 02:24:33
问题 Currently I call an existing existing LibreOffice macro with this: def OnLOtimestamp(self): try: pid= Popen(['lowriter '"'"'vnd.sun.star.script:fs2TimeStamp.py$fs2_TimeStamp?language=Python&location=user'"'"],shell=True).pid except OSError, e: self.notify_show("Timestamp Error",str(e)) self.ma2.SetLabel("Macro timestamp") self.database['Time_stamp'] = self.database['Time_stamp'] + 1 The key bit being the Popen call, where the macro name is fs2TimeStamp.py and the function is fs2_TimeStamp but

轻松搭建基于 Serverless 的文档图片在线转换服务

十年热恋 提交于 2020-01-08 14:23:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 函数计算(Function Compute) : 函数计算 是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。 1 核心优势 异构服务:支持多种运行环境 用于媒体文件转换的库或者二进制往往和业务的运行环境不同,对计算资源的需求也有较大的差异。 函数计算支持多种运行环境,支持为独立的转换函数定制算力单位,根据请求量自动伸缩,让核心业务和支持业务做到较好的分离。 灵活触发:支持多种触发方式 函数计算既可以通过集成事件源服务(OSS、API 网关、日志服务和表格存储)产生事件来触发函数执行,也可以通过 HTTP 触发器使用 HTTP 请求触发函数执行,还支持 API/SDK 直接调用函数。 弹性伸缩: 轻松应对负载的波峰波谷 函数计算提供跨可用区的容灾能力,根据请求量自动进行毫秒级弹性扩容,快速调度计算资源,轻松应对业务洪峰。 预留实例功能彻底消除实例冷启动带来的延时毛刺,为在线应用迁移至函数计算扫清障碍! 工程效率:搭建速度快,运维代价小 使用函数计算,开发者无需管理服务器等基础设施,只需编写并上传代码,函数计算准备好计算资源,弹性可靠地运行任务

LibreOffice Calc execute a PostgreSQL Function

和自甴很熟 提交于 2020-01-05 04:26:08
问题 I'm currently using Microsoft Excel to execute Stored Procedures on a SQL Server database and it is working fine. If anyone is interested there are really nice instructions here http://datapigtechnologies.com/blog/index.php/running-a-sql-stored-procedure-from-excel-with-dynamic-parameters/ I was wondering if it's possible to do something like this with LibreOffice Calc and PostgreSQL. I know that LibreOffice supports PostgreSQL connections as you can create a PostgreSQL odb file but I was

VB.Net example for LibreOffice SDK

假如想象 提交于 2020-01-05 04:21:09
问题 The WriterDemo example uses VB.NET to interact with the UNO API. (The files are also included with the SDK download in file:///C:/Program Files/LibreOffice 5/sdk/examples/CLI/VB.NET/WriterDemo/ .) To build and run, I set up the command line environment according to https://api.libreoffice.org/docs/install.html, and then executed the Makefile using make WriterDemo.run . But it crashes on this line: xContext = Bootstrap.bootstrap() The error message: Unhandled Exception: System.Runtime

When to import uno

假装没事ソ 提交于 2020-01-04 13:22:48
问题 Using Ubuntu 12.04 and LibreOffice 3.5.7.2. I am trying to understand Python scripting in Libre Office. I've read quite a bit on the web and looked at and run some examples. I noticed that some examples import uno and some don't. They all run fine, but if I comment out import uno, that script stops working. Could someone explain to me when uno needs to be imported. Thanks, Jim 回答1: Try just importing uno. At the very most it will slow your program by 2 seconds. import uno ##JUST DO It! 回答2:

R Copy from Clipboard in Ubuntu Linux

我们两清 提交于 2020-01-04 12:17:29
问题 I want to copy from the Ubuntu Linux clipboard into R Studio. My workflow consists of moving back and forth between R Studio and LibreOffice Calc. I've found the following code for writing to a Linux X11 clipboard, but I don't know how to read from it. Write to X11 Linux clipboard: clipboard <- function(x, sep="\t", row.names=FALSE, col.names=TRUE){ con <- pipe("xclip -selection clipboard -i", open="w") write.table(x, con, sep=sep, row.names=row.names, col.names=col.names) close(con) } #

R Copy from Clipboard in Ubuntu Linux

时光怂恿深爱的人放手 提交于 2020-01-04 12:16:17
问题 I want to copy from the Ubuntu Linux clipboard into R Studio. My workflow consists of moving back and forth between R Studio and LibreOffice Calc. I've found the following code for writing to a Linux X11 clipboard, but I don't know how to read from it. Write to X11 Linux clipboard: clipboard <- function(x, sep="\t", row.names=FALSE, col.names=TRUE){ con <- pipe("xclip -selection clipboard -i", open="w") write.table(x, con, sep=sep, row.names=row.names, col.names=col.names) close(con) } #

Create Flowchart in LibreOffice using Python

青春壹個敷衍的年華 提交于 2020-01-04 05:08:12
问题 There plenty of examples on how to use Python to control the LibreOffice text document and spreadsheet but very little documentation on how to use the drawing program. I am trying to figure out how to draw a flowchart or at least some shapes in LibreOffice using Python. I am using Windows 10 and the Python 3.3 that came with LibreOffice 5. There is a very good example of how to use spreadsheet LibreOffice Python example In the example the following lines are common if you use the text

unoconv export .xlsx file into image like png

↘锁芯ラ 提交于 2020-01-04 02:30:12
问题 I have successfully installed unoconv in my ubuntu 14.04 64 bit. I want to export the first sheet of an .xlsx file into image like png or jpg. I tried unoconv -l & 9998 ## this is to start the python listener unoconv -f png abc.xlsx I get the following: unoconv: UnoException during export phase: Unable to store document to file:///var/virtual/abc.png (ErrCode 3088) Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"draw

工具导航Map