devexpress-office-file-api-excel-export

Generate large Excel files in .NET with a low-memory streaming API.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill devexpress-office-file-api-excel-export-aleksaristic216
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devexpress-office-file-api-excel-export
Source: https://github.com/AleksaRistic216/dotnet-playground/tree/main/.github/skills/office-file-api/devexpress-office-file-api-excel-export
Command: npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill devexpress-office-file-api-excel-export-aleksaristic216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires DevExpress.Document.Processor, and includes references (resource) components.

What problem does it solve? Generating large Excel reports in .NET often loads entire workbooks into memory, causing high RAM usage and slow performance. This Skill guides you through the DevExpress Excel Export Library, a streaming API that writes rows sequentially to produce .xlsx, .xls, or .csv files with a minimal memory footprint. ## Core Features & Use Cases - Streaming Excel Generation: Write rows top-to-bottom from databases, IEnumerable sources, or data grids without loading the whole document into RAM. - Rich Formatting & Formulas: Apply fonts, fills, borders, number formats, conditional formatting, tables, sparklines, pictures, and formulas during export. - Print & Validation Setup: Configure page setup, headers/footers, page breaks, AutoFilter, and data validation rules on generated worksheets. - Use Case: Export a 10-million-row sales dataset from a database reader directly into a formatted .xlsx report with a totals row and AutoFilter, all within a memory-constrained server environment. ## Quick Start Ask the AI to generate a .NET console app using the DevExpress Excel Export Library that streams data rows into a formatted SalesReport.xlsx file.

Frequently Asked Questions about devexpress-office-file-api-excel-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate large Excel files in .NET with low memory usage?

Use the DevExpress Excel Export Library, which streams rows sequentially to an output stream instead of loading the workbook into RAM. Create an exporter with XlExport.CreateExporter, then write sheets, rows, and cells inside nested using blocks.

What is the difference between DevExpress Excel Export Library and Spreadsheet Document API?

The Excel Export Library is a forward-only streaming API with very low memory use that cannot read or modify files. The Spreadsheet Document API loads the entire workbook into memory and supports reading, modifying, charts, and pivot tables.

Which NuGet package do I need for DevExpress Excel Export?

Install the DevExpress.Document.Processor NuGet package for .NET 6/7/8+ projects. For .NET Framework 4.6.2+, reference DevExpress.Printing.v25.2.Core.dll and related assemblies, or use the same NuGet package.

Why does my string formula throw an error in the Excel Export Library?

String formulas like cell.SetFormula("=SUM(A1:A5)") require an XlFormulaParser passed to XlExport.CreateExporter. Without it, use expression objects such as XlFunc.Sum and XlOper.Multiply, which need no parser.

Can the DevExpress Excel Export Library read or modify existing Excel files?

No, the Excel Export Library only writes new files in a forward-only streaming manner and cannot read or modify existing documents. For reading or editing files, use the DevExpress Spreadsheet Document API instead.

Why is my generated Excel file corrupt or truncated?

The file is finalized only when IXlDocument is disposed. Wrap the exporter, document, sheet, row, and cell objects in nested using blocks so each level is disposed in the correct order before the file is flushed.