Questions tagged [uno]

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

Resources:

251 questions
3
votes
1 answer

Adding Acrobat JavaScript code to pdf export

I need to add startup Acrobat JavaScript code to pdf file while exporting to pdf (from ods or odt) by OpenOffice uno API (in C#). The code should by called when PDF is being opened or just has been opened. I already know other solutions to the…
algorytmus
  • 953
  • 2
  • 9
  • 28
3
votes
1 answer

How to update an embedded Excel table in a word document with OpenOffice Java API?

I need to update an embedded Excel table inside a Word document (can be .doc or .docx) using Java and the OpenOffice API UNO. Has anyone done this? Any pointers appreciated :)
user481572
3
votes
1 answer

How python-uno can manipulate libreoffice-calc with pipe?

Python uno can communicate with libreoffice-calc via socket,the common way is to launch libreOffice-calc from the shell: soffice --calc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" soffice can communicate python-uno with…
showkey
  • 482
  • 42
  • 140
  • 295
3
votes
0 answers

Bootstrap LibreOffice with .NET Core throws Exception

I was using this code on Net Framework 4.x successfully: var unoPath = @"C:\Program Files\LibreOffice 5\program"; Environment.SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + @";" + unoPath,…
Nomada
  • 343
  • 2
  • 10
3
votes
1 answer

Enumerate FieldMarks in a libreoffice document

Libreoffice represents docx text fields as fieldmarks. I can create them via the UNO bridge with the following MWE: # to connect as client` import uno from pythonscript import ScriptContext resolver =…
tstenner
  • 10,080
  • 10
  • 57
  • 92
3
votes
1 answer

How to know the Java interfaces an OpenOffice Calc UNO object supports (through queryInterface)

I'm developing a "macro" for OpenOffice Calc. As the language, I chose Java, in order to get code assistance in Eclipse. I even wrote a small ant build script that compiles and embeds the "macro" in an *.ods file. In general, this works fine and…
SomeDev
  • 73
  • 4
3
votes
2 answers

Libre Office Macro to crop image

I have a Libre Office Macro and I need to crop an image, but I have been unable to find any helpful documentation or an example. Anyone have a tip how to do it? dim noArgs() dim emptyDocComponent as object dim document as object dim dispatcher as…
3
votes
0 answers

UNO error: Binary URP bridge disposed during call

I am trying to test Python UNO api with LibreOffice and It is producing a strange error. Traceback (most recent call last): File "", line 16, in __main__.RuntimeException: Binary URP bridge disposed during call shell returned…
Freak
  • 6,786
  • 5
  • 36
  • 54
3
votes
2 answers

python + wx & uno to fill libreoffice using ubuntu 14.04

I collected user data using a wx python gui and than I used uno to fill this data into an openoffice document under ubuntu 10.xx user + my-script ( +empty document ) --> prefilled document After upgrading to ubuntu 14.04 uno doesn't work with python…
PyUsr
  • 31
  • 1
3
votes
1 answer

How to check paragraph adjustment using pyUNO library in Libre/Open Office?

The com.sun.star.style.ParagraphProperties service supports the property ParaAdjust, that supports 5 values from com.sun.star.style.ParagraphAdjust (ParagraphProperties, ParagraphAdjust). To set the value, one of the two methods could be…
LikosX
  • 81
  • 6
3
votes
2 answers

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:…
Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79
3
votes
2 answers

Openoffice pipe (unix domain socket) somewhere other than /tmp?

It's possible to get Openoffice to accept UNO connections over a unix domain socket with: $soffice -headless -invisible -nocrashreport -nodefault -nologo -nofirststartwizard -norestore -conversionmode…
Marcin
  • 48,559
  • 18
  • 128
  • 201
3
votes
1 answer

How to debug crashing openoffice with pyuno

I'd like to use openoffice to programmatically convert docx to pdf. I know unoconv can do this, and indeed unoconv will do this for me, even if I run a separate listener (using unoconv -l) and invoke unoconv -n (so that it will die if it can't…
Marcin
  • 48,559
  • 18
  • 128
  • 201
3
votes
1 answer

How do I programmatically save a document in OpenOffice.org?

I'd like to save a TextDocument created through OpenOffice.org UNO to a file on the disk. What is the best way to do this? Edit: This is the C# code that I ended up using. document is an XTextDocument. protected void Save (string path) { string…
Matthew
  • 28,056
  • 26
  • 104
  • 170
3
votes
1 answer

How to avoid connectors moving over shape in Open Office/Libre Office Draw

I am programmatically drawing a flowchart(using Java UNO Runtime Reference) in which I am showing If-Else condition.But I am facing problems while showing the "ELSE" condition because in such a case the connector moves over the intermediate shape(as…
Alok
  • 929
  • 10
  • 26
1 2
3
16 17