Questions tagged [openoffice-api]

15 questions
7
votes
0 answers

Office JS application.createDocument() opens new window with closed add-in

We are loading a base64 document from the backend and opening it in our Word-addin (using Office JS APIs). We are using application.createDocument(base64) to do so. This causes the Word application to open an entirely new window for the new…
7
votes
2 answers

Python convert Excel File (xls or xlsx) to/from ODS

I've been scouring the net to find a Python library or tool that can converts an Excel file to/from ODS format, but haven't been able to come across anything. I need the ability to input and output data in either format. We don't need to worry…
Ashwin Balamohan
  • 3,303
  • 2
  • 25
  • 47
4
votes
4 answers

How can I convert a document to landscape mode using a Java library?

I am writing a program in Java (I am using Ubuntu). I am using Jodconverter to convert the document to PDF. I have to convert the document to landscape mode but I have read that Jodconverter doesn't support orientation changes. I also tried with…
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
2
votes
0 answers

insert image into table cells in writer using openoffice API

I'm trying to insert images into cell of a table inside document using openoffice api. However, I got blank images like the image below This is the code: private void insertFigureIntoTable(Hashtable tblTable) { if (document…
Kien Dang Ngoc
  • 1,079
  • 5
  • 15
  • 25
2
votes
3 answers

Adding code which verifies that I'm in Eclipse?

As mentioned on different locations, maven (version 3.0.1) doesn't support a CLASSPATH outside the project. Thus when a jUnitTest want to launch an external application (like OpenOffice i.e.) it fails when launching the command '$> mvn test'. In…
kdg1955
  • 305
  • 2
  • 12
1
vote
1 answer

OpenOffice API: URL seems to be an unsupported one

I get this exception for a seemingly valid URL: document = componentLoader.loadComponentFromURL(templateURL, "_blank", FrameSearchFlag.CREATE, new PropertyValue[0]); Called with templateURL…
vbence
  • 20,084
  • 9
  • 69
  • 118
1
vote
1 answer

Javascript office api insert image in powerpoint

I'm trying to insert a image in powerpoint using javascript office api. I tryed to return a XElement with the image and insert it but it didn't work.
Nicu
  • 3,476
  • 4
  • 23
  • 43
1
vote
1 answer

Insert HTML Text Into OpenOffice Document (.odt) Files

I am Trying to Insert HTML Text Inside Apache Open Office .odt File I try Statement with Bold as show Below but it is not Working. Is There I am missing Something ? XComponentContext oStrap = uno.util.Bootstrap.bootstrap(); …
Dgan
  • 10,077
  • 1
  • 29
  • 51
1
vote
0 answers

How to place HTML text into OpenOffice spreadsheet using OpenOffice API

How to place HTML text into OpenOffice spreadsheet using OpenOffice API I have found a solution for ODT-Textdocuments.. (but nothing for a SpreadsheetDocment): Load odt document where we want to place HTML text. Goto place where you want to place…
Andi7586
  • 11
  • 1
0
votes
0 answers

Libre calc macro works until computer restart

There is a slight problem I am having with Libre office Calc macro. I used code from libre office calc macro tutorial, and modified for my needs. However, it worked the first time I ran it, but the next day it didn't work. I tried changing lines,…
0
votes
1 answer

Download in Chrome triggered from excel does not work

Hello every one I just found out that chrome has depreciated download triggered from iframes or sandbox. because of this any download's I trigger does not work as expected inside excel add-in ( Only in chrome ). I think that excel dev team should…
naveen ashok
  • 311
  • 1
  • 16
0
votes
0 answers

How to automate open office online apps

I need to automate excel online functionality that is being used by a web app. How can I automate excel online (open office app integrated with my web app)? I'm using selenium for my web app..
user5199
  • 359
  • 2
  • 15
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
-2
votes
1 answer

How to read OpenOffice version in Java (1.6)

I'm a C# developer and actually i have to develop some functions in Java 1.6 for an OpenOffice-PlugIn. One of these functions is to get some meta informations of environment like the version of the executing OpenOffice. On Google i didn't find…
Andy
  • 11
  • 2