Dyego Souza Dantas Leal wrote:

> In my application i need to create a instance of component... using 
> Officebean with Java Language :)
> 
>             XMultiComponentFactory cf = 
> aBean.getOOoConnection().getComponentContext().getServiceManager();
>             XComponentContext context = 
> aBean.getOOoConnection().getComponentContext();
>            
>                    
>             System.out.println("look !  
> "+cf.createInstanceWithContext("com.sun.star.text.TextField.User",context));

This service can't be created at the "global" service manager. It is
only available through the XMultiComponentFactory interface of a text
document.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to