uno

Use OpenOffice Uno CLI with C# to create a spreadsheet

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have so far found a couple of sources that discuss creation of ODS files: How to create ODS documents in .Net and How to create .odt files with C#.NET? And most interestingly an explanation for opening calc files . However this opens OpenOffice in fullscreen, what im looking for is some way to write to a Calc file (.ods) without actually opening Openoffice. So that I can write a function that just opens a savefiledialog, gets the filename and then creates and saves the .ods file. Are there is any C# code examples available to do such a

Getting python to import uno / pyuno

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been searching all day for a solution and can't seem to find anything that works, just a bunch of a leads that seem outdated or non-functional. I'm basically trying to get to a hello-world state either in python so that I can start programmatically creating document pages from database data. I tried installing both libreoffice and openoffice. I installed the file in the default location (i did windows 7 (C:\Program Files (x86)\LibreOffice 4) and installed ubuntu 14 and tried the default path (/usr/lib/libreoffice) too). I had trouble

【LibreOffice】openoffice各模块介绍(中文版)

匿名 (未验证) 提交于 2019-12-03 00:32:02
转自:https://blog.csdn.net/richerg85/article/details/7871105 openoffice3.4最新模块目录如下: 下面是对各模块的介绍,只能是部分模块介绍,也是比较重要的模块介绍,其中标注红色的是比较重要的, solenv是编译环境。 模块 功能描述 accessibility 提供对辅助功能的支持 apache_java 包括 Apache 提供的 Java 工具, Xalan 和 XML-APIS autodoc 从 UNO IDL 和 C++ 源文件自动产生文档的工具 automation 自动测试架构 basctl Basic 集成开发环境 basic Basic 解释器和运行时库 berkeleydb Sleepycat 公司提供的轻型数据库 bitstream_vera_fonts Bitstream 公司提供的用于拉丁语系文字的 Bitstream Vera 字体 boost 与 C++ 标准库协作的一套可移植的 C++ 库,将会包含进 C++ 标准库中 bridges 实现 UNO 向 C++ ( MS Visual C++ 、 Sun Forte C++ 、 gcc 等)和 Java 等不同语言的桥接 chaos 在 UCB 之前使用,大部分已废弃,现在只实现邮件文档转移服务 codemaker 包含产生 C++

How to get the opened document using UNO?

假装没事ソ 提交于 2019-12-02 10:12:43
问题 I'm writing an add-on that opens a dialog and I need to access the currently opened text document but I don't know how get it. I'm using the OpenOffice plug-in in NetBeans and I started from an Add-on project. It created a class that gives me a XComponentContext instance but I don't know how to use it to get a OfficeDocument instance of the current document. I've been googling for some time and I can't find any example that uses an existing, opened, document. They all start from a new

Search strings and line breaks with pyUNO

↘锁芯ラ 提交于 2019-12-02 08:10:42
I would like to delete a specific string from a document. I manage to delete the content of the string, but the line break still remains after. I found some things about ControlCharacters but it seems they are only numeric constants. Is it actually useful? This works. r = oDoc.createReplaceDescriptor() r.setSearchString("FOOBAR") r.setReplaceString("OTHERSTUFF") oDoc.replaceAll(r) This does not r = oDoc.createReplaceDescriptor() r.setSearchString("FOOBAR\n") r.setReplaceString("OTHERSTUFF") oDoc.replaceAll(r) r = oDoc.createReplaceDescriptor() r.setSearchString("FOOBAR\r") r.setReplaceString(

How to get the opened document using UNO?

倾然丶 夕夏残阳落幕 提交于 2019-12-02 05:26:48
I'm writing an add-on that opens a dialog and I need to access the currently opened text document but I don't know how get it. I'm using the OpenOffice plug-in in NetBeans and I started from an Add-on project. It created a class that gives me a XComponentContext instance but I don't know how to use it to get a OfficeDocument instance of the current document. I've been googling for some time and I can't find any example that uses an existing, opened, document. They all start from a new document or a document that is loaded first so they have an URL for it. I gave it a try based on the

Bootstrap Uno API LibreOffice exception

泪湿孤枕 提交于 2019-12-01 19:27:21
With the following code: static void Main() { try { var context = uno.util.Bootstrap.bootstrap(); } catch (Exception ex) { Console.WriteLine(ex.toString()); } } I can start Writer of LibreOffice. This works fine with Version 4.4.4 but after installing version 5.0.0 and with new SDK Bootstrap.bootstrap() throws the exception: "External component has thrown an exception" Has anyone faced the same problem or some solution? (.NET 4.0, Windows 7 64-bit, LibreOffice 5.0 Lite) Funbit I have managed to solve the problem by setting the UNO_PATH environment variable before starting the soffice.exe

Bootstrap Uno API LibreOffice exception

邮差的信 提交于 2019-12-01 18:45:22
问题 With the following code: static void Main() { try { var context = uno.util.Bootstrap.bootstrap(); } catch (Exception ex) { Console.WriteLine(ex.toString()); } } I can start Writer of LibreOffice. This works fine with Version 4.4.4 but after installing version 5.0.0 and with new SDK Bootstrap.bootstrap() throws the exception: "External component has thrown an exception" Has anyone faced the same problem or some solution? (.NET 4.0, Windows 7 64-bit, LibreOffice 5.0 Lite) 回答1: I have managed to

OpenOffice.org development with pyUno for Windows—which Python?

怎甘沉沦 提交于 2019-11-30 20:40:35
At home, on Linux, I've experimented with pyUNO to control OpenOffice.org using Python. I've been using Python 2.6. It all seems to work nicely. Now I thought I would try one of my scripts ( run a graphical diff for ODF doc ) on Windows. But when I tried to run it, I got: ImportError: No module named uno According to udk: Python UNO Bridge and OpenOffice.org Running Python on Windows , I have to run the Python interpretter that's installed with OpenOffice.org. Q1: Is Python 2.6 available for OpenOffice.org? However, that interpreter is Python 2.3 , which is getting a little old! and my script

ArduinoUno和Leonardo的区别

两盒软妹~` 提交于 2019-11-30 15:18:32
学习过 Arduino 的同学对ArduinoUno和Lenardo的不同点会有所了解,但说起具体的区别估计还是很多人答不上来,今天我们就详细解释下Arduino Uno和Leonardo的不同。 我们从四个方面来详细解释两者区别: 第一:中断的区别 Uno只提供两路中断。Leonardo提供5路。 当年Leonardo靠着多出3个中断的特点在Uno搬砖的时候横着走了好几次。但最终还是被包工头解决了这个不和谐的地方,包工头拍打着Leonardo的肩膀,意味深长的说:你的中断,是D0到D3,D0和D1是UART接口,D2和D3是IIC接口UART几乎是每次都要用到,所以D0和D1有点不中用。Uno的两路中断只和GPIO复用,因此完全不存在矛盾。 第二:USB支持的不同 Uno有独立的USB转串口芯片,所以在重启单片机时基本可以击败全国百分之九十九点九的Leonardo。而Leonard只用了一款支持USB的单片机每次reset,电脑上的串口也要被重新载入一次,插入电脑后,会先产生一个串口号,然后完全加载完之后,会变成另外一个串口号加载速度也非常慢,8s延时。试想,哪个追求速度的男人会喜欢。。。 第三:IIC接口区别 Uno的IIC接口和AD4、AD5复用,6路AD被占用4个基本问题不大。Leonardo的IIC和另外两路中断复用。 4.库的使用 Uno的SPI直接有库可以用