worksheet.Cells[1, 0].Value = "Widget"; worksheet.Cells[1, 1].Value = 10; worksheet.Cells[1, 2].Value = 5.99; worksheet.Cells[1, 3].SetFormula("=B2*C2");
workbook.Save("Report.xlsx"); For truly massive files (500k+ rows), use the LoadOptions to stream data: gembox.spreadsheet.dll
var worksheet = reader.Worksheets[0]; foreach (var row in worksheet.Rows) // Process row by row without holding entire file in RAM Console.WriteLine(row.Cells[0].Value); worksheet