openoffice.org

Fatal error running an SWT application from OpenOffice

孤街浪徒 提交于 2019-12-19 11:29:07
问题 I have an OpenOffice Java addon application. I'm calling SWT from an XActionListener . Loading of SWT is done dynamically using a special class loader. The SWT window displays well, but when I hit the close button of an SWT window I get an error. I'm attaching the error file generated by this error. What is the meaning of this error? My SWT code final Display display = Display.getDefault(); final Shell shell = new Shell(); shell.setLayout(new FillLayout(SWT.VERTICAL)); shell.setSize(500, 375)

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

浪子不回头ぞ 提交于 2019-12-19 02:46:10
问题 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

How do I make vba code compatible with libre office

无人久伴 提交于 2019-12-18 14:55:42
问题 I have recently migrated to pclinuxos from windows and seem to like it. The only problem I am facing is that libreoffice, the default spreadsheet package is not compatible with excel macros. Below is the vba code I have: Option VBASupport Sub DeleteToLeft() Selection.SpecialCells(xlBlanks).Delete shift:=xlToLeft End Sub Function SinceLastWash() Application.Volatile WashCount = 0 WearCount = 0 CurrentRow = Application.ThisCell.Row For i = 3 To 35 If Range(Cells(CurrentRow, i), Cells(CurrentRow

OpenOffice PDF Export Library

本秂侑毒 提交于 2019-12-18 12:42:46
问题 I am looking for a library which will allow me to render text and graphics output onto a PDF document. (Cairo is certainly an option.) I would like to know how OpenOffice writes PDF files to see if I could use the same library. What library is being used by OpenOffice for PDF export? Edit: I am looking for a C or C++ library. 回答1: I looked everywhere to find out how to export any document to PDF using OpenOffice. I finally found a buried post in the OpenOffice forums that got me 90% there.

How do I convert RTF to PDF from my PHP web page using OpenOffice?

这一生的挚爱 提交于 2019-12-18 09:37:52
问题 My OS is Windows XP, and I'm using IIS 5.1 and PHP 5.2.9. I'm trying to call a PHP script from my PHP page in order to convert an RTF doc to a PDF, using OpenOffice. The script works just fine when I call it directly from the command line, but I'm not having any success getting the very same script to work when launched from my PHP web page. When I call the script from my PHP page, the page hangs, eventually showing an error, and I've noted that I can see in the Task Manager where the soffice

How to create an update query with Open Office Base?

六月ゝ 毕业季﹏ 提交于 2019-12-18 09:37:20
问题 I want to create basically an update query on Open Office Base (the same way with Ms ACCESS). 回答1: Base does not typically use update queries (but see below). Instead, the easiest way to do an update command is to go to Tools -> SQL. Enter something similar to the following, then press Execute : UPDATE "Table1" SET "Value" = 'BBB' WHERE ID = 0 The other way is to run the command with a macro. Here is an example using Basic: Sub UpdateSQL REM Run an SQL command on a table in LibreOffice Base

How to create an OpenOffice document in .NET

一世执手 提交于 2019-12-13 13:40:55
问题 I am starting to write an application that will output an OpenOffice document. The content.xml file in an empty ODT document begins: <?xml version="1.0" encoding="UTF-8"?> <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns

How do I programmatically save a document in OpenOffice.org?

时间秒杀一切 提交于 2019-12-13 12:30:18
问题 I'd like to save a TextDocument created through OpenOffice.org UNO to a file on the disk. What is the best way to do this? Edit: This is the C# code that I ended up using. document is an XTextDocument . protected void Save (string path) { string url = "file://" + path; PropertyValue [] propertyValues = { new PropertyValue { Name = "FilterName", Value = new Any ("writer8") } }; ((XStorable) document).storeAsURL (url, propertyValues); } 回答1: Use XStorable.storeToURL() (or storeAsURL). Edit: You

How can i get user defined properties of an Open Office document

喜夏-厌秋 提交于 2019-12-13 09:18:45
问题 I am trying to get the UserdefinedProperties of an Open Office Writer Document. My questions are first how can i adress the currently open file in the writer? And how can i access the metadata after I told the programmm from which file it should get the data? hopefully someone of you can help me. Thank you very much. 回答1: Check this interface XDocumentProperties Reference< XDocumentInfoSupplier > xDocumentInfoSupplier(xComponent, UNO_QUERY); Reference< XDocumentInfo > xDocumentInfo =

How do I override ODF Root RSID using the API

一世执手 提交于 2019-12-13 03:03:09
问题 I am generating ODT documents using the openoffice/libreoffice API, and I want the files to come out to be 100% identical every time (by MD5 comparison). At this point I can unzip the two files generated at different times and check all the files within the zip file and they all match 100%, except for the Settings.xml which has two unique differences (both RSID related). <config:config-item config:name="Rsid" config:type="int">1835643</config:config-item> and <config:config-item config:name=