Use this tag for question about Uno which is the component model of OpenOffice.org.
Questions tagged [uno]
251 questions
3
votes
1 answer
Open Office Writer Search and Find String and Move Cursor
If anyone can assist with a method that searches for a string in an open office writer document using the UNO API with Java it would be very helpful. Once it searches for string and finds string can it then(even hidden) move the cursor to that…

topcat3
- 2,561
- 6
- 33
- 57
3
votes
1 answer
How to hide the navigation buttons in openoffice writer
Openoffice writer has a set of navigation buttons (up, select, down) shown below the vertical scrollbar.
I wish to remove this as my app is kiosk software.
I only wish to remove the navigation buttons, not the scrollbar.
I'm trying to remove/hide…

Adam
- 35,919
- 9
- 100
- 137
2
votes
1 answer
ModuleNotFoundError: No module named 'uno'
I am trying to access a LibreOffice Writer document using Python. When I try to import uno I get: ModuleNotFoundError: No module named 'uno'
This occurs both when working in PyCharm as well as at the prompt when I launch "C:\Program…

Todd Mitchell
- 21
- 2
2
votes
1 answer
LibreOffice 'uno' module will not work with Python 3.10?
When attempting to import uno under a Python 3.10 install, Python throws an error:
Traceback (most recent call last):
File "", line 1, in
File "D:\libreoffice7.3.4\program\uno.py", line 19, in
import…

M.Argyle.22
- 31
- 4
2
votes
1 answer
Can LibreOffice/OpenOffice programmatically add passwords to existing .docx/.xlsx/.pptx files?
TL;DR version - I need to programmatically add a password to .docx/.xlsx/.pptx files using LibreOffice and it doesn't work, and no errors are reported back either, my request to add a password is simply ignored, and a password-less version of the…

DevUser2000
- 21
- 2
2
votes
1 answer
Problem when using writer_pdf_Export filter in UNO LibreOffice
I installed LibreOffice [LibreOffice 6.1.3.2 10(Build:2)] and sdk on Ubuntu 16.03.
I used the java sample DocumentConverter in the sdk package to convert an odt in different formats.
With "MS WORD 97" or "Text" there is no problem but with…

JS Lair
- 21
- 6
2
votes
1 answer
unotools - try to convert ods or excel files to csv using python
What I need is a command line tool to convert excel and ods spreadsheet files to csv which I can use on a web server (Ubuntu 16.04).
I already red this: https://pypi.python.org/pypi/unotools
which works fine for the given examples.
And this:…

dlg_
- 307
- 4
- 11
2
votes
3 answers
simplest Unostructure that supports he getByName
In LibreOffice Basic sub I use a bunch of uno properties in an array. Which is the simplest Unostructure or UnoService that I must "embed" them, in order to use the getByName "function"?
Example:
dim props(1) as new…

ilias iliadis
- 601
- 8
- 15
2
votes
1 answer
Python - LibreOffice Calc - Find & Replace with Regular Expression
I try to code a Find & Replace method with Python in LibreOffice's Calc to replace all the ".+" with "&" (in a single column - not so important) - unfortunately, even a standard Find & Replace method seems to be impossible (to me). That's what I…

Elsi
- 23
- 4
2
votes
1 answer
ImportError: cannot import name 'Element'
When importing an error occurs.
>>> import uno
Traceback (most recent call last):
File "", line 1, in
import uno
File "C:\Users\viktor.zaichenko\AppData\Local\Programs\Python\Python35- 32\lib\site-packages\uno\__init__.py",…

Viktor Zaichenko
- 31
- 1
- 5
2
votes
1 answer
Is it possible to build a LibreOffice sidebar addon with HTML,CSS and Javascript
Just wondering if its possible to build side bar add-ons for LibreOffice/OpenOffice with HTML, CSS and Javascript.
The other alternative idea would be to use the UNO api and an embedded browser to display a web app and allow interaction. We have a…

James Drew
- 628
- 6
- 10
2
votes
2 answers
Insert a cell with a Basic Macro in LibreOffice Calc
I'm trying to insert a cell beginning with the first cell in a range (via the .getCellRangeByName() method of a Document's active Sheet).
I found out how to do this with a Dispatcher from the OpenOffice library (.uno:InsertCell), but I'd prefer to…

John Suit
- 1,254
- 12
- 17
2
votes
3 answers
OpenOffice, writing a document to a servlet response
Currently we use OpenOffice to grab bookmarks in a template file document and replace them with content from our DB via Java. The lines of code that actually save the file look like this...
XStorable storable =…

benstpierre
- 32,833
- 51
- 177
- 288
2
votes
0 answers
LibreOffice java uno 'How to get cursor position of text range or a paragraph'
I'm looking for a clever and accurate way to get the cursor position of a paragraph within a text. I will be using this point to place an image besides the text items or paragraphs. I am doing this on impress and thus using XShape and XText. The…

jsil
- 21
- 1
2
votes
0 answers
How to UNO read content of file in http format?
I used UNO to read content of file in local machine. It's ok. But when UNO reads content of file in http format, it shows error:
Error () during conversion:Unsupported URL…

user3414482
- 41
- 2