Questions tagged [uno]

Use this tag for question about Uno which is the component model of OpenOffice.org.

Resources:

251 questions
0
votes
1 answer

Install unohelper on virtual env

What's the command for installing unohelper via pip? I tried $ pip install unotools, but it doesn't work. I have uno and unotools installed.
Viktor
  • 4,218
  • 4
  • 32
  • 63
0
votes
1 answer

how to navigate through each character in Open Office

I'm making an extension in java for OpenOffice and I need to do something on each character. On word I've been able to do it using : foreach item in doc.characters Is there something similar in OpenOffice Java API?
Benjamin
  • 5
  • 4
0
votes
2 answers

How should I add JFrame to dialog in open Office?

Parent of Jframe needs to be spreadsheet, I need to add Jframe to dialog created in open office during run time.So that spreadsheet is disabled for processing, clicking on buttons and only work can be done in dialog consisting of JFrame. I am using…
Rubal
  • 11
  • 6
0
votes
1 answer

How to check if a bookmark contains a table?

Is it possible to determine when a Bookmark contains a TextTable? I thought about looking through XTextRange objects, however, the documentation does not specify anything about comparing ranges.
awesoon
  • 32,469
  • 11
  • 74
  • 99
0
votes
1 answer

Getting the selected JRE path from Open Office(Tools>Options>OpenOffice>Java) for different OS via java

I do not want to install Java or JRE in the project that creates my open office calc project heavy to execute and is difficult to run on any OS with jars attached. Hence, I want to know the way to extract the path of jre selected in Open Office in…
Rubal
  • 11
  • 6
0
votes
1 answer

Python-uno not working in ubuntu 14.04

I have a python project developed in Ubuntu 12.04 using python 2.7 . It is using pyoo and uno installed using pip install pyoo apt-get -y install python-uno While using this project on ubuntu to 14.04 . a) while installing apt-get install…
Varun Chawla
  • 303
  • 1
  • 6
  • 19
0
votes
1 answer

Bootstrap Uno LibreOffice exception

With the following code: static void Main() { try { var context = uno.util.Bootstrap.bootstrap(); } catch (Exception ex) { Console.WriteLine(ex.toString()); } } This code works fine in win 7 but getting "SEH…
0
votes
1 answer

Insert new row into LibreOffice writer table using UNO

I have recently tried to code a small java file which will insert a row into an already existing table in a .odt document. The table itself has 4 rows and 3 column, but I would like to implement a check which will expand that table if the content to…
0
votes
1 answer

Opening multiple documents in a same window with UNO

I have script in python using pyuno that extracts data from many excel files. My problem is that for every file I open and close a window with url = unohelper.systemPathToFileUrl(os.path.abspath(file_name)) file = desktop.loadComponentFromURL(url,…
Green
  • 382
  • 3
  • 8
0
votes
1 answer

Pyuno indexing issue that I would like an explanation for

The following python libreoffice Uno macro works but only with the try..except statement. The macro allows you to select text in a writer document and send it to a search engine in your default browser. The issue, is that if you select a single…
Rolf of Saxony
  • 21,661
  • 5
  • 39
  • 60
0
votes
2 answers

Python Uno Not Found On Latest Open Office Installation

Am now on the third Open Office 4 installation this week, direct from their site, ensuring 'Python Uno' is selected. Whether running C:\Program Files (x86)\OpenOffice 4\program\python-core-2.7.6\bin\python.exe directly or setting it as the…
user2422819
  • 177
  • 13
0
votes
1 answer

unowinreg.dll: can't load ia 32-bit .dll on a amd 64-bit platform

I'm making a first foray into UNO and after failing in my main attempt (bootstrapper issues) I've gone right back to basics and I'm trying to follow the beginners…
gringogordo
  • 1,990
  • 6
  • 24
  • 60
0
votes
1 answer

Libre office uno api save as xls

As far i have following code to force an ods to recalc all values in spred sheet and save it that into several formats. But i can not find the filter for XLS. Has anyone an idea how to find it out? import uno from com.sun.star.beans import…
GreenRover
  • 1,486
  • 1
  • 14
  • 33
0
votes
1 answer

How do I test in a LibreOffice python macro whether I'm in a Writer or Calc document?

I am working in libreoffice and need a python macro that can insert data into the current document from an external source. Given that the insert methods are different for a spreadsheet and a document using the UNO API, how do I code the macro to…
Rolf of Saxony
  • 21,661
  • 5
  • 39
  • 60
0
votes
1 answer

How do I write a python macro in libreoffice calc to send and receive data

The premise: I am working in libreoffice calc and need to send an instruction to another program that I know to be listening on a TCP port, via a macro. I am expecting a reply from the listening program and want to insert the reply data into the…
Rolf of Saxony
  • 21,661
  • 5
  • 39
  • 60