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.
...
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...
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...
How to load another color palette (*.soc file) in OpenOffice Writer?
...
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...
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...
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....
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...
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...
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?
...
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...
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 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...
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...
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...
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...
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...
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?
...
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...
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 ...