libreoffice

Mono-LibreOffice System.TypeLoadException

我是研究僧i 提交于 2019-12-02 10:02:55
问题 In the past I wrote a C# library to work with OpenOffice and this worked fine both in Windows than under Ubuntu with Mono. Part of this library is published here as accepted answer. In these days I discovered that Ubuntu decided to move to LibreOffice, so I tried my library with LibreOffice latest stable release. While under Windows it's working perfectly, under Linux I receive this error: Unhandled Exception: System.TypeLoadException: A type load exception has occurred. [ERROR] FATAL

Mono-LibreOffice System.TypeLoadException

南楼画角 提交于 2019-12-02 05:30:47
In the past I wrote a C# library to work with OpenOffice and this worked fine both in Windows than under Ubuntu with Mono. Part of this library is published here as accepted answer. In these days I discovered that Ubuntu decided to move to LibreOffice, so I tried my library with LibreOffice latest stable release. While under Windows it's working perfectly, under Linux I receive this error: Unhandled Exception: System.TypeLoadException: A type load exception has occurred. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred. Usually Mono tells us which

LibreOffice Command Line Conversion - No Output File?

旧时模样 提交于 2019-12-02 04:36:22
I am using LibreOffice installed on my Linux box and I seem to be having a weird problem in that the conversion seems to be taking place, and there seem to be no errors, but there is no output file in the specified output directory. Here is an example of the command I am using: /opt/libreoffice3.6/program/soffice --headless --invisible --convert-to pdf /dir/file.pptx --outdir /dir And here is the result of that command: convert /dir/file.pptx -> /dir/file.pdf using impress_pdf_Export But the problem is that after running the conversion /dir/file.pdf does not exist. Do any of you have any

用CentOS 7打造合适的科研环境

给你一囗甜甜゛ 提交于 2019-12-02 02:56:41
这篇博文记录了我用CentOS 7搭建 地震学科研环境 的过程,仅供未来重新装机时参考。 准备工作 U盘一个,用于制作CentOS启动盘,U盘容量700M以上; 下载CentOS 7的 LiveCD ISO镜像文件 下载Windows下的启动盘制作工具 Universal USB installer 利用Universal USB installer将CentOS的镜像文件写入U盘 插入U盘,重启电脑,进入BIOS选择从U盘启动,进入CentOS的LiveCD 注: Linux下可以通过dd命令制作启动盘,但由于对原理不够了解,偶尔会导致制作失败,或制作成功后U盘容量有问题。 安装过程 CentOS 7的安装过程与其他Linux发行版的安装过程差不多。 分区 先让安装程序帮忙分区,然后再根据需要增删分区以及修改细节; 默认的分区方案是使用LVM,一个好处在于“当机器有多块硬盘时,使得看上去只有一块”。 默认的文件系统为XFS; 分区细节 /boot:CentOS自动分配了100M; /:30G swap:64G(与实际内存大小一致) /opt:70G /home:余下的全部空间 一些原则 为了尽可能地避免因为瞎折腾而导致不得不重装系统,设定如下系统使用原则: 仅使用CentOS官方源以及EPEL源,以避免一个软件包同时存在于多个源可能引起的版本冲突; 对于系统级别或较底层的软件包

php shell command error GLIBCXX_3.4.9 not found

Deadly 提交于 2019-12-02 02:44:41
问题 Im trying to execute shell command from php to convert files to pdf but i get this error. Could someone explain me in details how to fix it? Im not so good in linux( and also if i execute command straight through terminal everything works. /usr/lib/libreoffice/program/oosplash: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3) 回答1: version `GLIBCXX_3.4.9' not found The problem is that in this environment

Changing cell background color in LibreOffice

核能气质少年 提交于 2019-12-01 22:23:22
问题 I am using LibreOffice 3.5.4.2. I would like to change the background color of cells based on various conditions. As a minimal example, I have the following macro/function defined: function bgcolor() Dim Doc As Object Dim Sheet As Object Dim Cell As Object Doc = ThisComponent Sheet = Doc.Sheets(1) Cell = Sheet.getCellByPosition(0, 0) REM Cell.CellBackColor = RGB(50,60,70) bgcolor=Cell.CellBackColor end function I execute the function by entering =BGCOLOR() into a cell. The cell in which that

Error calling LibreOffice from Python

回眸只為那壹抹淺笑 提交于 2019-12-01 22:05:21
Calling LibreOffice to convert a document to text... This works fine from the linux command line: soffice --headless --convert-to txt:"Text" document_to_convert.doc But I get an error when I try to run the same command from Python: subprocess.call(['soffice', '--headless', '--convert-to', 'txt:"Text"', 'document_to_convert.doc']) Error: Please reverify input parameters... How do I get the command to run from Python? This is the code you should use: subprocess.call(['soffice', '--headless', '--convert-to', 'txt:Text', 'document_to_convert.doc']) This is the same line you posted, without the

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

unable to run oowriter as web user

会有一股神秘感。 提交于 2019-12-01 15:43:51
I have a web server set up on my laptop. I am building a web application which I am accessing through the local network. I have a php file which contains the following lines: $command = "/usr/bin/oowriter --invisible --convert-to pdf /var/www/hackathon/document/gaurav.doc -outdir /var/www/hackathon/pdf/" exec($command, $output, $return_var); print_r($output); So, the problem is that when I run the above code in the terminal php runs perfectly. But when accessed via a web browser, output is just empty and no conversion is done as intended. Apache error log shows the following lines: [Java

unable to run oowriter as web user

℡╲_俬逩灬. 提交于 2019-12-01 14:32:52
问题 I have a web server set up on my laptop. I am building a web application which I am accessing through the local network. I have a php file which contains the following lines: $command = "/usr/bin/oowriter --invisible --convert-to pdf /var/www/hackathon/document/gaurav.doc -outdir /var/www/hackathon/pdf/" exec($command, $output, $return_var); print_r($output); So, the problem is that when I run the above code in the terminal php runs perfectly. But when accessed via a web browser, output is