利用poi里给的api定义刷新计算公式
官方通道http://poi.apache.org/components/spreadsheet/eval.html
文档写的很详细不做赘述,下面给出实例。
注:单元格格式需要正确返回的是数字类型
public static List<Double> getFormula(String filepath) throws Exception {
List<Double> list=new ArrayList<Double>();
OutputStream out = null;
File file = new File(filepath);
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)