The C# Excel Library for XLSX Files
sgcDocs is a C# Excel library that creates and reads XLSX files with formulas, styles and number formats, with no Office installed, on Windows, Linux and macOS.
Included in sgcUI .NET Enterprise. See pricing →
using esegece.sgcDocs;
using (var sheet = new TsgcDocsSpreadsheet())
{
sheet.New();
sheet.SetValues("A1", "Units");
sheet.SetValues("A2", 12);
sheet.SetValues("A3", 30);
sheet.SetFormulas("A4", "=SUM(A2:A3)");
sheet.Calculate();
sheet.SaveToFile("units.xlsx");
sheet.ExportToPDFFile("units.pdf");
}