FormulaEngineer examples
Create, read, and style Excel workbooks in .NET.
Style workbooks as you write them — fonts, fills, borders,
number formats, alignment, and layout — using
ExcelStyledWriter. Every example below is a complete,
runnable snippet.
Group
Cells and text
10
Layout
10
Conditional formatting
6
Named styles and themes
4
Tables and notes
10
Images and shapes
4
Charts and sparklines
6
Dashboards
4
Example
10
examples
in Tables and notes
Styled inventory table
EnableTablesThe same table shape with a different built-in style name, showing that the style is a string swap rather than a rebuild of the table definition.
Write.cs
using FormulaEngineer.Api;
using FormulaEngineer.Api.Styling;
var stylingOptions =
new ExcelStylingOptions
{
EnableTables = true
};
using (var writer = new ExcelStyledWriter("styled-inventory-table.xlsx", null, stylingOptions))
{
using (var sheet = writer.CreateWorksheet("Inventory"))
{
sheet.WriteRow("SKU", "Item", "Stock");
sheet.WriteRow("FE-001", "Formula license", 42);
sheet.WriteRow("FE-002", "Support pack", 18);
sheet.WriteRow("FE-003", "Dashboard pack", 7);
sheet.AddTable(
ExcelTable.Create(
"InventoryTable",
"A1:C4",
new[]
{
ExcelTableColumn.Create("SKU"),
ExcelTableColumn.Create("Item"),
ExcelTableColumn.Create("Stock")
},
ExcelTableStyle.Create("TableStyleMedium9")));
}
writer.Close();
}
Style your own workbooks
Styling is part of the same package — no separate install, no Excel, no COM automation.