NPOI

1.xlsx

  2003及之前版本

IWorkbook workbook = new HSSFWorkbook();

ContentType是application/vnd.ms-excel

  2003以后版本

Workbook workbook = new XSSFWorkbook();

ContentType是application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

 

posted @ 2020-02-19 13:46  wskxy  阅读(115)  评论(0编辑  收藏  举报