To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=89269
                 Issue #|89269
                 Summary|selection of a row in scalc spreadsheet
               Component|Spreadsheet
                 Version|1.0.2
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|spreadsheet
             Reported by|maheshn





------- Additional comments from [EMAIL PROTECTED] Sat May 10 07:58:23 +0000 
2008 -------
Hello,
Can anyone please post the JAVA code to select a row in scalc spreadsheet. The
vbscript code for doing this as follows.

Set 
currentRow=dtWorkbookObj.sheets.getbyname(sheetname).getCellRangeByPosition(0,rowPos-1,10,rowPos-1)
dtWorkbookObj.getCurrentController.select(currentRow) 

I have tried the below in JAVA without success

com.sun.star.frame.XModel xModel;
   xModel= (com.sun.star.frame.XModel )
UnoRuntime.queryInterface(com.sun.star.frame.XModel.class, wbObj);
   com.sun.star.frame.XController xController =xModel.getCurrentController();
   xController. ??? (select() does not exist for this interface)

xController does not have a method select(). I am unable to find the right
interface that has the method select(). I have also tried to do this with the
frame of the document but again unable to get the interface that has the select
method. 
Please help. Thanks for reading.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to