Spire.XLS for .NET is a professional Excel .NET component. This Professional .NET Excel component is a standalone Excel .NET managed assembly and does not depend on Microsoft Office Excel. Spire.XLS for .NET offers support both for the old Excel 97-2003 format (.xls) and for the new Excel 2007,Excel 2010 and Excel 2013 (.xlsx, .xlsb, .xlsm), along with Open Office(.ods) format. It features fast and reliably compared to developing your own spreadsheet manipulation solution or using Microsoft Automation.
Comments (2)
{
File.Delete(Util.XLSXFileName);
}
//Save as xlsx using Spire
Workbook workbook = new Workbook();
workbook.LoadFromFile(Util.CSVFileName, ",", 1, 1);
Worksheet sheet = workbook.Worksheets[0];
sheet.Name = "csv to excel";
workbook.SaveToFile(Util.XLSXFileName, ExcelVersion.Version2010);