DRIT.Spreadsheet

DRIT.Spreadsheet

Pure-managed, cross-platform .NET workbook automation. Create, read, calculate, edit, protect, sign, convert, and export spreadsheet documents without requiring Microsoft Excel or Office Interop.

When DRIT.Spreadsheet fits

Use it in reporting services, data-import pipelines, finance and operations tools, document-generation systems, and server applications that need Excel-compatible workbooks without automating a desktop application.

Capabilities

  • Data and formulas: typed values, shared and array formulas, circular-reference detection, iterative calculation, sorting, AutoFilter, data validation, DataTable, JSON, CSV, TSV, and Markdown workflows.
  • Reporting: number formats, fonts, borders, fills, rich text, conditional formatting, themes, AutoFit, grouping, page setup, headers, footers, and page breaks.
  • Workbook structures: worksheets, tables, pivot tables, slicers, defined names, hyperlinks, comments, threaded comments, custom XML, OLE objects, shapes, pictures, form controls, and sparklines.
  • Protection and export: Agile AES-256 encryption, workbook/worksheet protection, XAdES-BES signatures, VBA preservation/editing, PDF, image, HTML, and Markdown export.

Format direction

FormatDirectionContext
XLSX / XLSB / CSV / TSVRead / writePrimary workflows
XLSRead / preservationLegacy compatibility
HTML / JSONRead / writeImport/export
PDF / images / EMFWriteRendering/export

Platform and quick start

Targets net48, netstandard2.0, and net6.0. Excel and Office Interop are not required. PDF/image output uses DRIT.Pdf and DRIT.Drawing.

dotnet add package DRIT.Spreadsheet --version 26.9.1379

var workbook = new Workbook();
var sheet = workbook.Worksheets[0];
sheet.Cells["A1"].Value = "Product";
sheet.Cells["B1"].Value = "Revenue";
sheet.GetRange("A1:B1").Font.Bold = true;
workbook.SaveAs("output.xlsx");

Choose your next step

Commercial product context: the public repository contains examples and documentation, not the commercial product source or an MIT license. Verify the PDF rendering license and deployment terms for production export workflows.