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

[solved] How to get a Scenario range (Java)

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


Joined: 12 Mar 2012
Posts: 34

PostPosted: Mon Aug 06, 2012 7:29 am    Post subject: [solved] How to get a Scenario range (Java) Reply with quote

I've tried a lot of things, for example:
Code:

XScenariosSupplier xScenariosSupplier = (XScenariosSupplier)
                UnoRuntime.queryInterface(XScenariosSupplier.class, xSpreadsheet);                 

XScenarios xScenarios = xScenariosSupplier.getScenarios();
String names[] = xScenarios.getElementNames();
for(int i = 0; i < names.length(); i++)
{
    Object scenario = xScenarios.getByName(names[i]);
    XScenario xScenario = (XScenario)
                 UnoRuntime.queryInterface(XScenario.class,scenario)
.......

but now that I have the scenario, there's no "get" method for the range!!
Is there a way to obtain the range of the scenario?
Thanks
Back to top
View user's profile Send private message
satabau
General User
General User


Joined: 12 Mar 2012
Posts: 34

PostPosted: Mon Aug 06, 2012 8:53 am    Post subject: Reply with quote

I didn't know that exists XScenarioEnhanced: http://www.openoffice.org/api/docs/common/ref/com/sun/star/sheet/XScenarioEnhanced.html
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