我们正在尝试生成Excel文件,并且在尝试执行此代码时遇到上述错误-
我尝试使用--02-06
,也尝试使用CreationHelper
。但是,似乎没有任何效果。我们正在使用apache poi-4.0.1
FileOutputStream
答案 0 :(得分:0)
我在其他地方使用了Name
属性来命名工作表。删除它后,它就起作用了。
final Name name = xssfWorkbook.createName();
name.setNameName("Summary.Report_" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("MMddyy")) + ".xlsx");