I recently started to study the Officebean library, in other words, I tried to run a simple OOoBean example. Unfortunately, I didn’t understand anything.
First of all, I tried to create a Swing JFrame with a JPanel and a bean inside, but nothing was shown inside the window.
public class OpenOfficeGUI extends JFrame { private OOoBean ooBeanObj = null; private OfficeConnection ooConnection = null; public OpenOfficeGUI() { init(); } private void init() { JPanel panel = new JPanel(); JButton myButton = new JButton("Arsch"); ooBeanObj = new OOoBean(); myButton.setSize(100, 32); panel.setSize(800, 500); panel.setLocation(5, 5); panel.setBackground(new Color(125, 125, 125)); panel.add(ooBeanObj); panel.add(myButton); panel.setLayout(null); this.add(panel); this.setSize(800, 600); this.setLocation(0, 0); this.setDefaultCloseOperation(EXIT_ON_CLOSE); } }
My second attempt is the SWT application, shown on eclipsezone.com ( http://www.eclipsezone.com/eclipse/forums/t48966.html ). I run this thing, but at startup, "com.sun.star.comp.beans.NoConnectionException" occurs.
My third and final attempt was that the OOoBeanViewer formed the OpenOffice Wiki. So I found a message that seems to refer to the aforementioned ConnectionException, but it does not fire, and the same Exception pops up.
I also tried to manually start OpenOffice in listening mode by running the command: soffice.exe - bean -accept = pipe, name = login.name_Office; urp StarOffice.NamingService
In the end, I didn’t understand anything and noticed that there was almost no information about OpenOffice Bean. Also, many methods in Officebean.jar are deprecated.
So my questions are:
- Is OpenOfficeBean dead?
- Do you have any advice on how I can simplify integration with OpenOffice Java?
- is the OpenOffice SDK an alternative to embed OpenOffice in a Java Swing application?
- Do you know any regular source of information about bean or SDK?
- Is there an equivalent feature for LibreOffice?
thanks
Richard
source share