刚刚接触Npoi,资料介绍中可以读写excel2007。我这在线审批excel系统主要就是操作excel,传统的那种com方式操作总是在后台服务器进程有许多未及时关闭的excel进程。

这种方式打开打开*.xlsx格式就报错

            using (FileStream file = new FileStream(path, FileMode.Open, FileAccess.Read))
            {
                hssfworkbook = new HSSFWorkbook(file);
            }

报错 The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案