Question

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

Was it helpful?

Solution

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

Hope it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top