openoffice-writer

A good Code snippet tool or plugin for Word documents?

Does anyone know of a good tool or plugin that enables Microsoft Word or OpenOffice Writer to add code snippets to a document in a clean manner? I'm not sure if such a plug-in even exists, so redirecting me to any other tool that can help me would be appreciated. ...

How do you set the text direction for a TextTable Cell in OpenOffice?

I want to set the text direction for some cells in a TextTable so that they are vertical (i.e., the text is landscape instead of portrait). You can do this in Writer by selecting the cell(s), and going to: Table - Text Properties - Text Flow - Text Direction However, I cannot figure out how to do this through the API. I tried using Char...

textbox2 to contain text from textbox1 in openoffice

Already asked but no answer: Using OpenOffice.org Writer, one can easily make simple pdf forms (since Writer does XForms, and can export to PDF, and embed the form using FDF). I'd like to make a text entry field with this property: * if the field overflows, put the overflow on an additional page, or in some special area on the page, lab...

Color palette in OpenOffice Writer

How to load another color palette (*.soc file) in OpenOffice Writer? ...

OpenOffice API - OptimalWidth option for table(all columns)

I am working on Java API which interacts with OpenOffice(swriter) through UNO. For TextTable, I am having hard time setting TableColumn's "OptimalWidth" property. I have tried the following code and it seems that getColumns() method cannot take me to TableColumn's property and let you only insert and remove columns. XTableColumns xCol...

Mail Merge with Open Office from C# .NET

I need to be able to mail merge from an ASP.NET web form in C# .net to Open Office. I can connect with OpenOffice and open a file but that is where things stop at the moment. I have a table of mail merge items that need inserting into a document for each client on my system but I can't find anything on the internet that helps me perfor...

How do I create an XTextTable in OpenOffice.org uno using C#?

Discussion on OOoForum.org In python, using pyuno, I can do it like this: table = self.model.createInstance("com.sun.star.text.TextTable") This doesn't seem to work in C#. Here is my test code (I realize I probably don't need all those using statements, but I am adapting someone else's code): using System; using unoidl.com.sun.star....

how to export a checkbox to a .doc document in OpenOffice ?

Hi all, I use OpenOffice through the java API, and make him open the .odt file, fill in some values and save as .doc and .pdf. The .doc have no checkboxes in it. I'm basically looking for a workaround of bug 45347 Correcting the bug by myself is not an option since a checkout of the openoffice code takes more than 10h (various Go o...

How do I set the properties for an XTextTable in OpenOffice.org uno using C#?

Discussion on OOoForum.org In python, I can do something like this: table.BreakType = PAGE_BEFORE table.HoriOrient = 0 table.RightMargin = 6.93 * 2540 - table_width In C#, I can't find a way to set properties. XTableTable only has a few methods available to it, and none of them seem to do anything like this. How do I set properties i...

How to link external variables in an Open Office Writer document?

Hi, I would like to update a odt with some external variables like version number. I know I can add variables, but the value of those variables are internal to the document. Perhaps with a formula? ...

In OpenOffice, how do I check if my XComponentContext has been closed?

I have a small application that generates three different template documents in OOo Writer. When one of the three "generate" buttons is clicked, this is part of the code that is executed (in C#): // Connect to OOo if (componentContext == null) componentContext = uno.util.Bootstrap.bootstrap(); XMultiServiceFactory multiServiceFacto...

OpenOffice PDF Export Library

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. ...

Multi table programmatic merge to ODF document file

I had built a custom XML merge with Microsoft Word 2007 using the docx format, allowing the user to access fields expressed in a schema and include them in a Word DocX. I then opened the file, did the search/replace throughout the document, closed it up and opened it, fully merged, in Word. With the patent suit loss, new users of our so...

Debugging report error on SSRS

Hi Folks, we have a bunch of reports (RDL) on SSRS built using officewriter. Sometimes errors occur in a report after updating the excel template. While the report renders fine, an error occurs on the server when trying to save the report using 'export to excel format for office writer' option. How do we debug to find the cause of the er...

OpenOffice with .NET: how to iterate throught all paragraphs and read text

How to iterate through all paragraphs in OpenOffice Writer document and output text. I have Java examples, but don't know how to convert code to C#. Java example could be found here: http://wiki.services.openoffice.org/wiki/API/Samples/Java/Writer/TextDocumentStructure My C# code: InitOpenOfficeEnvironment(); XMultiServiceFactory multi...

OpenOffice iterating through TextTable detect merged and split cells (calculate colspan and rowspan)

I am using OpenOffice uno api to iterate through all text in writer document. To iterate over text tables currently I am using XTextTable interface getCellNames() method. How I could detect merged and split cells. I want to export table to html, so I should calculate colspan and rowspan. I would appreciate any suggestions... I am out of...

using OOoWrite, i would like to add custom html elements

I have 35 pages list of scientific references. In order to upload them to a webpage, I would like to add custom fields before and after each reference. I would also like to find italicized text and add around it. For instance, I would like this paragraph Alouf N., 1973. Biotope et description de Niphargus altagahizi n. sp., Amphipode...

How to give color to your code in open-office-writer?

I have code blocks written in Open Office Write and want colorize it. How can I do this? EDIT: When I copy syntax-highlighted code back to open office writer it becomes black again. How can I change this? ...

get pure text form odt file in console

I am looking for a small linux tool that would be able to extract text from odt file. It just needs to be human-readable and it can have problems with complicated objects etc. It's almost a duplicate of this question but I need it to be small and have no dependencies on OpenOffice or X server I remember having a 1MB MS-DOS program tha...

Error when I use Open Office API in ASP .NET

I use an Open Office API in my ASP .NET application for reading text content from *.doc files. public static bool getTextV2(string siteURL, string[] search) { //Create a new ServiceManager Type object Type tServiceManager = Type.GetTypeFromProgID("com.sun.star.ServiceManager", true); //Create a new ServiceManager Com object ...