openoffice.org

How to get field lists using the OpenERP Report Designer Addon for OpenOffice / LibreOffice

最后都变了- 提交于 2019-12-05 18:46:57
I want to add fields to the reports and use them in python functions and do some coding inside the reports. I am using version 6.0.3 of OpenERP, I keep getting an empty field list. This is what the "add field" command on the addon should look like: I am using the "OpenERP Report Designer" addon for OpenOffice / LibreOffice. The "Add a field" command in the OpenOffice addon does not work for me. It shows an empty field list. I tried in 6.0.3 on a linux and a windows server and also 6.0.2 on a windows server. I believe all other commands of the report designer do work. Is there a way to make it

Generate ODT documents with dynamic images in PHP

纵饮孤独 提交于 2019-12-05 15:56:28
I maintain a couple of web databases based on PHP and mySQL on a shared hosting package. The databases have a mechanism for the user to upload OpenOffice documents with placeholders: [person.name] [person.address] [person.postcode] I then use this great PHP tool to run through the OpenOffice document and insert values from the database into it. The result is again, an OpenOffice document. What it can't do is dynamic images . Does anybody know a - preferably PHP-only - solution to insert images into OpenOffice documents? I know PUNO . Can't use it in this context because it's shared hosting. I

How to insert an image in to an openoffice writer document with java?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 10:36:05
I'm trying to create an openoffice writer document from a template. I can replace text parts of report with this code private static void searchAndReplace(final String search, final String replace, final XTextDocument mxDoc) { XReplaceable xReplaceable = (XReplaceable) UnoRuntime.queryInterface( XReplaceable.class, mxDoc); XReplaceDescriptor xRepDesc = xReplaceable.createReplaceDescriptor(); xRepDesc.setSearchString(search); xRepDesc.setReplaceString(replace); xReplaceable.replaceAll(xRepDesc); } I found some sample code from here to link or embed an image into an xTextDocument. But, I can't

OpenOffice pyuno “select all”

旧时模样 提交于 2019-12-05 09:13:19
Does anyone know how to use the OO uno bridge api to "select all" in a Calc sheet? Alternatively, finding the maximum used row and column number would work. What I want to do is apply a format to all the cells in the spreadsheet. (The reason being that I'm saving the sheet as csv, so numbers are not accurately saved unless the format provides enough decimal places.) Assuming you have already connected to OpenOffice and document is a spreadsheet that has been opened or created. #get the sheet you want to work with, I'm just going to grab the first sheet sheets = document.getSheets()

Using pyuno with my existing python installation

☆樱花仙子☆ 提交于 2019-12-05 04:29:02
问题 I'm trying to use PyUNO as a method to convert different document formats (doc, wordperfect, html, etc) to PDF from within my Django server. I'm having a heck of a time getting import uno to work. It seems to fail when doing import pyuno , with a message of ImportError: DLL Load Failed: The specified module could not be found . The only way I can get this to work is to use the Python 2.6 that came with OpenOffice, but I really want to use my other 2.6 installation. The docs for PyUNO are all

How to do a simple mail merge in OpenOffice

混江龙づ霸主 提交于 2019-12-05 01:52:07
问题 I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net or C# via OLE or native API. Are there any good examples available? 回答1: I haven't come up with a solution I'm really happy with but here are some notes: Q. What is the OO API for mail merge? A. http://api.openoffice.org/docs/common/ref/com/sun/star/text/MailMerge.html Q. What support groups? A. http://user.services.openoffice.org/en/forum/viewforum.php?f=20 Q. Sample code? A. http://user.services.openoffice.org/en

Problem with starting OpenOffice service (soffice) from Java (command working in commandline, but not from Java)

南笙酒味 提交于 2019-12-04 15:46:40
I want to exceute a simple command which works from the shell but doesn't work from Java. This is the command I want to execute, which works fine: soffice -headless "-accept=socket,host=localhost,port=8100;urp;" This is the code I am excecuting from Java trying to run this command: String[] commands = new String[] {"soffice","-headless","\"-accept=socket,host=localhost,port=8100;urp;\""}; Process process = Runtime.getRuntime().exec(commands) int code = process.waitFor(); if(code == 0) System.out.println("Commands executed successfully"); When I run this program I get "Commands executed

Doc to PDF with PHP + Openoffice

拜拜、爱过 提交于 2019-12-04 15:36:26
I am trying to follow a tutorial on converting doc to pdf using openoffice. I have the following code: <?php set_time_limit(0); function MakePropertyValue($name, $value,$osm){ $oStruct = $osm->Bridge_GetStruct("com.sun.star.beans.PropertyValue"); $oStruct->Name = $name; $oStruct->Value = $value; return $oStruct; } function word2pdf($doc_url, $output_url){ // Invoke the OpenOffice.org service manager $osm = new COM("com.sun.star.ServiceManager") or die ("Please be sure that OpenOffice.org is installed.\n"); // Set the application to remain hidden to avoid flashing the document onscreen $args =

C#: Getting the number of rows/columns with ExcelPackage

£可爱£侵袭症+ 提交于 2019-12-04 15:01:54
问题 I need to read and write data from an Excel spreadsheet. Is there a method to finding out how many rows/columns a certain worksheet has using ExcelPackage? I have the following code: FileInfo newFile = new FileInfo(@"C:\example.xlsx"); using (ExcelPackage xlPackage = new ExcelPackage(newFile)) { ExcelWorksheet worksheet = xlPackage.Workbook.Worksheets[1]; } I need to iterate through each cell this worksheet has and spit it into a fairly big table, but I don't want to print out blank cells or

What do I need to do in order to get OpenOffice.org Calc to read the VBA code in an Excel file?

旧时模样 提交于 2019-12-04 12:21:52
My employer is considering installing OpenOffice.org's suite of Office products instead of using Microsoft Office. I've written several advanced applications in Access and Excel, and I'm trying to figure out what will and will not be compatable with OpenOffice.org. Specifically, what do I need to do to have Calc (OpenOffice.org's version of Excel) read and execute VBA in macro's and tie macro events to button clicks? Also of note, I'm using the MySQL Connector from within Excel to dynamically update data in the spreadsheet. What might I need to do to preserve data connectivity to our MySQL