Jürgen Schmidt wrote:
Hi,

Cristian Fonti wrote:

Hi to all,
i have made a java class that interact with openoffice (create a writer document, and insert some text). Now i would invoke a method of it in a macro writed in Open Office Basic... Something like this:
Sub Main()
--some code to invoke a java class
End sub
It's possible to do this??
I think it isn't possible... If it is so, can i use a dll (that i have created from my Java class) or something similar???
Thanks to all
Cristian Fonti


you can put an UNO interface around your functionality, can implement this interface as an UNO component and can use this UNO component directly from Basic. The UNO interface is more or less a language independent interface around your functionality which you can use from Basic, C++ or Python if you want and of course form Java as well using always the same interface.
See the SDK fro some example of UNO components

Juergen




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


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

If you have only one method you want to call then you could implement com.sun.star.lang.XMain

Jochen

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

Reply via email to