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

XCell has no getText() function?

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


Joined: 24 Mar 2006
Posts: 2

PostPosted: Fri Mar 24, 2006 1:35 pm    Post subject: XCell has no getText() function? Reply with quote

Hi there,

I am using OO 2.0.2/Linux - Debian/sid and struggling with the Uno Java interface.

Some fomulas in my spreadsheet are having text as a result.
How can I retrieve the text from the XCell?
getFormula() returns the formula and
getValue() cannot return strings.
getText() does not exist.

Regards
Holger
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Sat Mar 25, 2006 12:08 am    Post subject: Reply with quote

getString() exists.

You won't get anywhere just by guessing. Read the Developer's Guide instead.
Back to top
View user's profile Send private message Visit poster's website
Falkan
Newbie
Newbie


Joined: 24 Mar 2006
Posts: 2

PostPosted: Sat Mar 25, 2006 2:52 am    Post subject: Reply with quote

Thanks for your pointer.
It finally pointed me to the right documentation, as I got lost inside the APIDOC...

The solution was to pass the XCell to XText, capable of getString().
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