Convert xlsx file to xls using NPOI in c#
问题 I've a excel file in *.xlsx format. I want convert this file into *.xls format in my MVC Web application. In my application hosted server there is no Microsoft.Office package. Please let me know how we can achieve it in NPOI with c#. Thanks in advance. 回答1: I found the solution based on the Andy's suggestion. Here is the source code which is customized to convert XLSX to XLS. public static class ConvertXLSXToXLS { public static HSSFWorkbook ConvertWorkbookXSSFToHSSF(XSSFWorkbook source) { /