CellRangeAddress addr = crAddr.getRangeAddress() ;
XSpreadsheet oSheet = (XSpreadsheet)tEnv.getObjRelation("SHEET");
if (oSheet == null) throw new StatusException(Status.failed
("Relation 'SHEET' not found"));
XCell oCell = null;
double value;
for (int i = addr.StartColumn; i <= addr.EndColumn; i++)
for (int j = addr.StartRow; j <= addr.EndRow; j++) {
try {
oCell = oSheet.getCellByPosition(i, j);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log);
result = false;
break;
}
value = oCell.getValue();
result &= (value == dresult);
}
tRes.tested("setArrayFormula()", result) ;