Use this tag for question about Uno which is the component model of OpenOffice.org.
Questions tagged [uno]
251 questions
5
votes
2 answers
Can I use VSCode for developing WINDOW DESKTOP Apps using WinUI 3 or MAUI or UNO stack?
For the last few weeks I am trying to set up a project in VSCode to be able to build & run the windows desktop app. I understand that for WinUI 3 projects Visual Studio 2022 is recommended but most of the people in the team are using VSCode for all…

to-mars
- 101
- 7
5
votes
1 answer
Disappointing First UNO Experience. Only WASM works
I've spent the weekend and have still failed to get a "Hello, World" working.
Visual Studio:
2022 Version 17.0.4
2022 Preview Version 17.1.0 Preview 1.1
uno-check says everything is fine:
Here are my runtimes:
Neither WUX or MUX (UWP or Desktop)…

Mark Patterson
- 131
- 4
5
votes
2 answers
Using Python to access LibreOffice Calc using Uno
I'm trying to write a script to manipulate a Ubuntu Mint _LibreOffice Calc sheet using Python 3.7,. For some reason I'm getting an error when I try to import Uno. I can run a macro from inside Calc calling this
desktop =…

Jeff O
- 133
- 1
- 1
- 7
5
votes
2 answers
OpenOffice pyuno "select all"
Does anyone know how to use the OO uno bridge api to "select all" in a Calc sheet?
Alternatively, finding the maximum used row and column number would work.
What I want to do is apply a format to all the cells in the spreadsheet.
(The reason being…

c-urchin
- 4,344
- 6
- 28
- 30
5
votes
3 answers
Bootstrap Uno API LibreOffice exception
With the following code:
static void Main()
{
try
{
var context = uno.util.Bootstrap.bootstrap();
}
catch (Exception ex)
{
Console.WriteLine(ex.toString());
}
}
I can start Writer of LibreOffice. This works…

Entwickler
- 255
- 2
- 12
5
votes
2 answers
Getting python to import uno / pyuno
I've been searching all day for a solution and can't seem to find anything that works, just a bunch of a leads that seem outdated or non-functional.
I'm basically trying to get to a hello-world state either in python so that I can start…

ThinkBonobo
- 15,487
- 9
- 65
- 80
5
votes
2 answers
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)
…

Matthew
- 28,056
- 26
- 104
- 170
5
votes
4 answers
Installing pyuno (LibreOffice) for private Python build
There are a few related threads about this topic here ad here but they seem a bit dated.
I just downloaded LibreOffice 4 which has a Python 3.3.0 built in. Using that Python I can import and use UNO just fine, and control Office from my Python…

Jens
- 8,423
- 9
- 58
- 78
4
votes
1 answer
CommandBar Native Style on Uno Platform
I'm trying to do a simple navigation between two frames using CommandBar. The documentation (https://platform.uno/docs/articles/controls/CommandBar.html) says the Native style is default, but on Android is not possible to see the BackButton and the…

Sérgio Damasceno
- 657
- 1
- 8
- 18
4
votes
1 answer
Using pyuno on MacOS to do file conversions
I am running MacOS 10.6 and OpenOffice 3.3. I am interested in using PyUNO to script conversions of .odp to .ppt, .pdf, and .swf. I have not found any clear documentation on how to do so with MacOS. Does anyone know of existing documentation to…

seandavi
- 2,818
- 4
- 25
- 52
4
votes
0 answers
Add directory to classpath at runtime in Java 9
I am using OpenOffice API and one of the requirements to prevent the exception java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI is to add OpenOffice's directory path to classpath. This code below used to…

lucasdc
- 1,032
- 2
- 20
- 42
4
votes
2 answers
are there any ways to embed Open Office into my application?
I am successful in working with Open Office via UNO. Now I want to embed the Open Office library into my Java application, is it possible?

Linh
- 1,024
- 2
- 16
- 28
4
votes
1 answer
Use OpenOffice Uno CLI with C# to create a spreadsheet
I have so far found a couple of sources that discuss creation of ODS files: How to create ODS documents in .Net and
How to create .odt files with C#.NET?
And most interestingly an explanation for opening calc files. However this opens OpenOffice in…

lanoxx
- 12,249
- 13
- 87
- 142
4
votes
1 answer
Copy a whole ODT (Openoffice Writer) document section to other document with Openoffice Java API (UNO API)
I need to use the OpenOffice Java API to copy a document section and paste it over another document section. So far I have managed to copy the text of the section of the source document and paste it over the section at the target document (see the…

Angel Palazon
- 369
- 1
- 5
- 16
4
votes
2 answers
how to place HTML text into OpenOffice document using OpenOffice API
Lets see at this example:
I've got HTML tagged text:
Example text
I have *.odt (OpenDocument Text) document where I want to place this HTML text with formatting depends on HTML tags (in this example font tag should be…

Arek Woźniak
- 695
- 3
- 12
- 25