Skip to content

Instantly share code, notes, and snippets.

@dannylloyd
Created May 6, 2019 15:26
Show Gist options
  • Save dannylloyd/ca0608d6abe39bae9d8df6c63beb3dad to your computer and use it in GitHub Desktop.
Save dannylloyd/ca0608d6abe39bae9d8df6c63beb3dad to your computer and use it in GitHub Desktop.
Write to Excel using EPPLUS
using (var pck = new OfficeOpenXml.ExcelPackage())
{
var ws = pck.Workbook.Worksheets.Add("Sheet1");
ws.Cells.LoadFromCollection(mrns);
pck.SaveAs(new FileInfo(@"C:\Temp\Output.xlsx"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment