OpenXml Wrapper for excel word ...
dotnet add package OpenEasyDoc
- Export data to excel
var excelDoc = new EasyExcelDocument("your-excel-path");
var sheet = excelDoc.CreateSheet(1, "sheet-name");
sheet.NewRow().WriteCellData(1).WriteCellData("2").EndRow();
sheet.Close();
excelDoc.Close().Dispose();