Syncfusion Essential XlsIOSyncfusion Essential XlsIO can do this. It has no dependency on Microsoft office and also has specific support for different platforms.
- ASP.NET
- ASP.NET MVC
- UWP
- Xamarin
- WPF and Windows Forms
- Windows Service and batch based operations
Code sample:
//Creates a new instance for ExcelEngine.
ExcelEngine excelEngine = new ExcelEngine();
//Loads or open an existing workbook through Open method of IWorkbooks
IWorkbook workbook = excelEngine.Excel.Workbooks.Open(fileName);
//To-Do some manipulation|
//To-Do some manipulation
//Set the version of the workbook.
workbook.Version = ExcelVersion.Excel2013;
//Save the workbook in file system as xlsx format
workbook.SaveAs(outputFileName);
The whole suite of controls is available for free through the community licensecommunity license program if you qualify (less than 1 million USD in revenue). Note: I work for Syncfusion.