boolean bResult = false;
int startCol, endCol, startRow, endRow = 0;
XCellRangeAddressable oRange = (XCellRangeAddressable)
UnoRuntime.queryInterface(XCellRangeAddressable.class, oCursor);
oCursor.gotoEnd();
CellRangeAddress oAddr = oRange.getRangeAddress();
startRow = oAddr.StartRow;
startCol = oAddr.StartColumn;
endRow = oAddr.EndRow;
endCol = oAddr.EndColumn;