openoffice.org

Doc to PDF with PHP + Openoffice

北慕城南 提交于 2019-12-06 13:24:17
问题 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

How to find (and maybe extend) the list of available field names for reports in the OpenERP server sourcecode?

一个人想着一个人 提交于 2019-12-06 12:30:19
I am looking for a reliable way to get names of available data fields when creating or extending OpenOffice/LibreOffice report files. I already do know many field names from the existing reports. I also can lookup the field names in the module definitions. For example in the file addons\base\res\partner\partner.py I find a field list for the partner model: class res_partner(osv.osv): _columns = { 'name': fields.char('Name', size=128, required=True, select=True), 'date': fields.date('Date', select=1), 'title': fields.many2one('res.partner.title','Partner Form'), 'parent_id': fields.many2one(

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

泪湿孤枕 提交于 2019-12-06 11:04:49
问题 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

How to create and fill out a PDF form

喜欢而已 提交于 2019-12-06 10:32:57
background of the issue: I may get different kind of templates which contains controls(Text Box, check box) some times in a paper/word document.pdf document templates. Now i have to assign values in that provided templates, and have to save it as pdf document. So i found some thing useful for templating called Openoffice,from there i am able to add controls and able to save as pdf template document. Now for that template need to assign values, for that found one dll called iTextSharp. based on the samples while i am trying to add , the count of the fields in the pdf template is showing as 0.

Embedding objects into Microsoft Word and OpenOffice Writer

徘徊边缘 提交于 2019-12-06 10:26:12
问题 I am looking for some references on how to implement the following feature: ability to embed objects (e.g. diagrams) into word processors and being able to edit them in their respective "mother" application For example, MS Word and Visio work like this together, allowing the user to easily edit/tweak the diagrams after adding them to the word processor. I am interested in how this is done on the following platforms: Microsoft Word OpenOffice So far I know that: Microsoft Word -- uses OLE/COM

“Hello World” using OpenOffice 3 sample code

旧巷老猫 提交于 2019-12-06 09:23:56
I am trying to program a simple "Hello World" window on WinXP MSVC 2008.NET using OpenOffice 3.0 API and SDK. The article is big for beginners... http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_1_OpenOffice.org_Application_Environment What would the code for "Hello World" look like? Setup your solution: http://blog.nkadesign.com/2008/net-working-with-openoffice-3/ Then simple example: ( http://opendocument4all.com/content/view/68/47/ ) using System; // Add all needed CLI namespaces to the current class. using unoidl.com.sun.star.lang; using unoidl.com.sun.star.uno;

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

半世苍凉 提交于 2019-12-06 08:25:45
问题 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

How can I count words in complex documents (.rtf, .doc, .odt, etc)?

青春壹個敷衍的年華 提交于 2019-12-06 04:23:24
问题 I'm trying to write a Python function that, given the path to a document file, returns the number of words in that document. This is fairly easy to do with .txt files, and there are tools that allow me to hack support for a few more complex document formats together, but I want a really comprehensive solution. Looking at OpenOffice.org's py-uno scripting interface and list of supported formats, it would seem ideal to load the documents in a headless OOo and call its word-count function.

Is it possible to run openoffice macro from external file?

霸气de小男生 提交于 2019-12-06 03:26:29
问题 I want to run OpenOffice macro from external file. Like: vlad@leo ~ $ soffice macro:///home/vlad/q.vbs 回答1: Not really an answer - just a comment instead, so as to bump this question, and hopefully get an answer :) This possibly has to do with having to explicitly set permissions for macros, for instance: Can't execute macro from command line (View topic) • OpenOffice.org Community Forum Edit: In fact it seems to be impossible to call document macros, which is perfect for security reasons.

Exporting a list to OpenOffice Calc from Delphi

只谈情不闲聊 提交于 2019-12-06 01:46:01
I'm using Delphi 7 and I'd like to export the contents of a list from my program to OpenOffice Calc using automation, instead of using files. The task is simple: create new document, iterate through rows/columns and change cell data. I've found some code but it's not complete, and I was hoping someone has some example code ready to accomplish this very simple task. It could save me a few hours of trying. Thanks in advance! Edit: I'd like to automate OpenOffice Calc to achieve what I wrote above. Thanks! The easiest solution is to write CSV file output, and open that in OpenOffice. There are