public class Test3 {
public static void main(String[] args) throws Exception {
FileInputStream fis = new FileInputStream("C:/test.xlsx");
Workbook workbook = new Workbook(fis);
workbook.calculateFormula(false);
fis.close();
}
}
这段代码执行报错:Exception in thread “main” com.aspose.cells.CellsException: java.lang.ArrayIndexOutOfBoundsException: -1(Based on cell Sheet3!C3)
但是在excel中能执行出结果。
image.png (37.2 KB)
test.zip (10.7 KB)