top of page

Epplus 4.5.3.2 Site
static void Main()
Install-Package EPPlus -Version 4.5.3.2 Or using .NET CLI: epplus 4.5.3.2
// Add data worksheet.Cells["A1"].Value = "Hello EPPlus 4.5.3.2"; worksheet.Cells["B1"].Value = 123.45; // Auto-fit column worksheet.Cells["A:B"].AutoFitColumns(); // Save to file var file = new FileInfo(@"C:\temp\sample.xlsx"); package.SaveAs(file); static void Main() Install-Package EPPlus -Version 4
// Header style using (var range = ws.Cells["A1:C1"]) worksheet.Cells["B1"].Value = 123.45
new Name = "Alice", Score = 95 , new Name = "Bob", Score = 87 ; ws.Cells["A1"].LoadFromCollection(data, true); // true = headers
bottom of page