Hi.
I have found, that Aspose.Cells will not fire recalc event in your model, until i will not call Workbook.recalc() method. May be there is exists method for recalc last changed chains (without book-wild recalculation)?
public void autoRecalcTest() {
try {
Workbook workbook = new Workbook(“D:\book1.xls”);
Worksheet sheet = workbook.getWorksheets().get(0);
Cell b2 = sheet.getCells().get(“B2”);
Cell d2 = sheet.getCells().get(“D2”);
b2.putValue(“50”, true);
System.out.print(d2.getDisplayStringValue());
} catch (Exception e) {
e.printStackTrace();
assertNull(e);
}
}
I want to retrieve value “70”, but now it print value "30"
P.S. Can you please explain purpose of following settings, if i should call recalc method every time?
workbook.getSettings().setCalcMode(CalcModeType.AUTOMATIC);
P.P.S May be you have some method for recalc some range or cell separate?
Best regards. Alexey