SpreadsheetWriter
About this project
Generating Excel output in a .NET application typically means writing verbose, imperative code: instantiate a workbook, get a worksheet, set cell A1, set cell A2, apply formatting to a range, and so on. SpreadsheetWriter wraps that complexity behind a clean fluent interface so the intent of the spreadsheet structure is visible at a glance in the code.
The library targets common scenarios where you need to produce consistently-formatted Excel files from code — reports, data exports, generated templates — without tying your domain logic directly to EPPlus. The abstractions layer keeps the consumer code testable and leaves room to swap the underlying engine if needed.
Key features
- Fluent API for defining spreadsheet structure and content with method chaining
- EPPlus backend for full
.xlsxcompatibility SpreadsheetWriter.Abstractionspackage for dependency-inversion and testability- MIT licensed
Getting started
Install the NuGet package and start building spreadsheets with a fluent API:
dotnet add package SpreadsheetWriter.EPPlus
For projects that need to mock or replace the writer in tests, reference the abstractions package separately:
dotnet add package SpreadsheetWriter.Abstractions
See the repository for source code and usage examples.