OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

problem connecting my java function to OpenOffice calc

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
S4M
Newbie
Newbie


Joined: 26 May 2011
Posts: 1

PostPosted: Thu May 26, 2011 7:34 am    Post subject: problem connecting my java function to OpenOffice calc Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group