Domanda

I have created OOoBean instance:

com.sun.star.comp.beans.OOoBeanooBean = new com.sun.star.comp.beans.OOoBean();

XComponent xComponent = ooBean.getFrame();


Error: com.sun.star.comp.beans.NoConnectionException at com.sun.star.comp.beans.OOoBean.getFrame(OOoBean.java:956)


Can i create com.sun.star.comp.beans.OOoBean to com.sun.star.lang.XComponent?

Thanks

È stato utile?

Soluzione

OOBean has getFrame() method, which can be casted to XComponent.

Hope it helps.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top