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

 

上一篇:用xlsx.core.min.js上传文件


下一篇:Kendo-Grid for Vue API and Template