OOoBeans is dead? - What are my alternatives?

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

+6
java javabeans
source share
2 answers

After further research, I can give some answers to my questions:

  • OpenOffice Bean seems pretty dead. The latest version I found is from 2006, and, in my opinion, the latest SD SDO developments are not considered. In addition, the Bean is not very large (1500 LOC), so it makes sense to rewrite it from scratch.
  • I got the application by doing two things. First, I changed the code and manually connected to the OO executable instance ( ooBeanObj.startOOoConnection ("uno: socket, host = localhost, port = 2002; urp; StarOffice.ServiceManager"); ), The second change was to use a socket instead of a socket ( soffice - bean -accept = socket, host = 0, port = 2002; urp; ). But I do not know why this change is required.
  • SDK is not an alternative as it is the basis for OO bean. One could improve or rewrite the bean using the SDK methods.
  • The OpenOffice.org API project seems to be the best place to find information, although not every world of information or advice is on-date.
  • Currently, OpenOffice Bean can still connect to the LibreOffice instance (tested with LO v.3.3.0 RC1).

Bye
Richard

+7
source share

I recently used NOA, which does the same as OOOBean, but seems to be updated. This allowed me to pretty easily embed the author in JPanel. He also manages the opening and creation of his own openoffice application backstage. NOA - good open access to offices

+1
source share

All Articles