openoffice-writer

OpenERP - Report Creation

大城市里の小女人 提交于 2019-12-06 13:54:24
问题 I am trying to create a new report with report plugin and openoffice but I don't know how to assign it in the OpenERP system. Is there someone who can give me exact steps for creation of new report and integration with openerp? Thanks in advance! 回答1: Here are the steps to create the OpenERP RML report. open open-office.org tools menu extension manager go to - base_report_designer plugin →openerp_report_designer.zip restart open-office open a new report add a loop ( select your DB) add loop

How to Search text tags and replace with Image in Header/Footer/Table of Openoffice Document using Delphi

▼魔方 西西 提交于 2019-12-05 11:47:32
I have open office template documents where i need to search for tags like [CHART=100] and replace it with a Image file reside in some folder at PC. I am using approach mentioned in my previous question. How to insert image in OpenOffice Document using Delphi . Procedure ReplaceTextTagsWithImage(sFileTobeReplaced,ImageFile:string); var ServiceManager: Variant; Desktop: Variant; Document: Variant; NoParams : Variant; FileReplace: Variant; FileSearch : Variant; Txt : Variant; TextCursor : Variant; FileParams: Variant; Graphic : Variant; FileProperty,Imageproperty: Variant; afileurl,gurl : string

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

Chrome: Open links to OpenOffice documents on WebDAV directly in OpenOffice

橙三吉。 提交于 2019-12-05 07:01:17
问题 is there any way to open OpenOffice with the URL when I click on the link in Chrome browser? To be a bit more precise: I have a WebDAV folder that contains documents. https://myserver/documents/doc1.odt https://myserver/documents/doc1.odt I can open (and modify and store) these documents via open the file using the open dialog in openoffice with these URLs. But what I really want is to embed these links into my webpage and when I click onto this links I want the document behind it to be

Remote control or script Open Office to edit Word document from Python

随声附和 提交于 2019-12-01 00:31:50
I want to (preferably on Windows) start Open Office on a particular document, search for a fixed string and replace it with another string selected by my program. How do I do that, from an external Python program? OLE-something? The native Python scripting solution? (The document is in the Word 97-2003 format, but that is probably not relevant?) jro I'd say using the Python-UNO bridge . Does this work for you? import uno ctx = uno.getComponentContext() service_manager = ctx.getServiceManager() desktop = service_manager.createInstanceWithContext("com.sun.star.frame.Desktop", ctx) document =

Remote control or script Open Office to edit Word document from Python

倖福魔咒の 提交于 2019-11-30 20:45:17
问题 I want to (preferably on Windows) start Open Office on a particular document, search for a fixed string and replace it with another string selected by my program. How do I do that, from an external Python program? OLE-something? The native Python scripting solution? (The document is in the Word 97-2003 format, but that is probably not relevant?) 回答1: I'd say using the Python-UNO bridge. Does this work for you? import uno ctx = uno.getComponentContext() service_manager = ctx.getServiceManager(

OpenOffice PDF Export Library

强颜欢笑 提交于 2019-11-30 07:45:35
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. 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. Here is my 100% solution. Works with OpenOffice 3.1. You must install OpenOffice to use this code. You must