我正在尝试使用方法sheet.setActiveCell(CellAddress addr)来设置多个单元格同时处于活动状态的范围。我已经尝试过Apachepoi-ooxml库的多个版本,现在我使用的是3.16,它也支持方法sheet.setActiveCell(String addr)(我知道3.16是旧的,但这个问题在最新版本中也是一样的根据这个问题的建议:Is it possible to set the active range with ApachePOIXSSF?问题是
现在我需要计算一些单元格的公式,所以我尝试使用这样的FormulaEvaluator
...java.lang.ClassCastException: org.apache.poi.xssf.streaming.SXSSFCell cannot be cast to org.apache.poi.xssf.usermodel.XSSFCellat org.apache.poi.xssf.usermodel.X