S4M Newbie

Joined: 26 May 2011 Posts: 1
|
Posted: Thu May 26, 2011 7:34 am Post subject: problem connecting my java function to OpenOffice calc |
|
|
Dear all,
I am using OpenOffice 3.2 with eclipse 3.6. I am trying to export a quick HelloWorld function to OpenOffice calc following this tutorial, but two problems are appearing:
- in the file MyServiceImpl.java, eclipse automatically adds the lines:
| Code: | implements org.openoffice.example.XMyService,
com.sun.star.lang.XServiceInfo |
but org.openoffice.example.XMyService is not recognized (so I commented it out and the project compiled), and I dont know what to import to make it compatible
- in the macro editor of OpenOffice calc, the command [code oHelloworld = createUnoService( "org.openoffice.helloworld.Helloworld" )[/code] returns a null object.
I was wondering if someone already experienced that problem, or know a fix.
Many thanks,
S4M |
|