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 packa
It is possible in general, but not quite easy.
XLS file format is handled by HSSFWorkbook class (and according HSSFSheet and so on).
XLSX file format is handled by XSSFWorkbook class (and XSSFSheet and so on).
So in order to convert your file from XLSX to XLS you need to:
XSSFWorkbook, load data to it from file;HSSFWorkbook;HSSFSheet and copy all the data from original worksheet to this new oneHSSFWorkbook to file.So there is a lot of work to be done here, and this is significantly complicated task.
Probably NPOI is not the best solution in your case.