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

Help needed in accessing cell ranges for Calc Add-ins

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
nadSeeker
General User
General User


Joined: 29 Sep 2010
Posts: 7

PostPosted: Sun Oct 17, 2010 11:31 am    Post subject: Help needed in accessing cell ranges for Calc Add-ins Reply with quote

Hey, i have succeeded in adding a function to Calc and reading the input figures on a Calc spreadsheet. I'm using the <projectName>.impl.java file generated and changing its return statement so as to give the result of my function.

But I can only access a pre-defined number of cells only. i.e. the size of the array i define in the java code. How can I access a dynamically determined cell range and use its values to do a computation??
eg: when the user inputs the cell values as
2 4 7
1 7 3
4 3 9
each value in one cell, and when I program to take a 3*3 array(2-D array), computation succeeds(obvious) But I need to extend the code to be able to access any sized cell range.

I've tried out the method of creating the for loop as
for(int i=0; ; i++){
for(int j=0; ; j++){
...<mycode>
}
}
but it even doesn't work

Great help if one can give me a hint.
Thanx in advance
_________________
~seeker~
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 Calc 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