devexpress/agent-skills/devexpress-office-file-api-excel-export
Claude Code and agent skill by devexpress/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Build .NET applications with the DevExpress Excel Export Library for streaming generation of Excel files with low memory footprint. Use when generating large Excel reports, writing rows sequentially, building Excel files from data grids or report engines, or when the full Spreadsheet Document API would use too much memory. Also use when someone mentions "DevExpress Excel Export", "XlExport", "IXlExporter", "IXlSheet", "DevExpress.Export.Xl", "streaming Excel generation", "low-memory Excel", or…
Install
npx vskill@latest install devexpress/agent-skills/devexpress-office-file-api-excel-exportSKILL.md
DevExpress Excel Export Library
The Excel Export Library is a low-level, streaming .NET API for generating Excel files (.xlsx, .xls, .csv) with a minimal memory footprint. It writes rows sequentially to an output stream and cannot read or modify existing files. Use it when you need to produce large Excel reports from databases or data grids without loading the entire document into RAM. The primary namespace is DevExpress.Export.Xl.
Excel Export Library vs. Spreadsheet Document API
| Excel Export Library | Spreadsheet Document API | ||
|---|---|---|---|
| Model | Streaming — write rows top-to-bottom, forward only | In-memory — random access to any cell at any time | |
| Memory | Very low — ideal for large files | Higher — entire workbook in RAM | |
| Can read files? | No | Yes | |
| Can modify existing files? | No | Yes | |
| Charts, Pivot Tables? | No | Yes | |
| NuGet | DevExpress.Document.Processor (shared) | DevExpress.Document.Processor | |
| Namespace | DevExpress.Export.Xl | DevExpress.Spreadsheet |
Rule: If the developer needs to read, modify, add charts, or create pivot tables → use the Spreadsheet Document API skill instead. If they need to stream-generate a large file from data → this skill is correct.
When to Use This Skill
Use this skill when you need to:
- Generate large Excel reports (.xlsx) with low memory consumption
- Write rows sequentially from a database reader or IEnumerable data source
- Export grid or report engine data to Excel in a streaming fashion
- Create Excel files in server-side or cloud environments where RAM is constrained
- Apply cell formatting (fonts, colors, borders, number formats) during export
- Add formulas, subtotals, or AutoFilter to generated files
- Create conditional formatting rules on streamed data
- Build Excel tables (IXlTable) with styles and calculated columns
- Insert sparklines or pictures into generated worksheets
- Configure print settings, headers/footers, and page breaks
- Add data validation rules to cell ranges
Prerequisites & Installation
NuGet Packages
| Package | Purpose | |
|---|---|---|
DevExpress.Document.Processor | Excel Export Library (streaming API) |
String formulas (parsed from text) require an additional reference — see references/getting-started.md.
.NET (8/9/10+)
.NET Framework (4.6.2+)
Add assembly references manually — see references/getting-started-dotnet-fw.md.
Important: All DevExpress packages in a project must share the same version number. A valid DevExpress license is required.
Package Versions
Unless the user explicitly requests a specific version, always target the latest DevExpress release (v26.1 at the time of writing). dotnet add package <PackageName> without --version installs the latest stable version — prefer this form. Never pin an older version in project files, Dockerfiles, or CI/CD pipelines unless the user asks for it. This is especially important in integration scenarios (Docker, cloud deployments). All DevExpress.* packages in a project must share the same version.
Before You Start — Ask the Developer
If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.
Before generating code, ask these questions to avoid rework:
General Questions
- Target framework: Are you using .NET 8+ or .NET Framework 4.x?
- New or existing project?: Are you creating a new project or adding to an existing one?
- Hosting model: Console app, ASP.NET Core, Blazor, MAUI, WinForms, WPF, or something else?
Excel Export-Specific Questions
- Scenario check: Are you generating a new large report (this library is correct) or do you need to read/modify an existing file (use Spreadsheet Document API instead)?
- Data source: IEnumerable / DataTable / direct row-by-row writing / database reader?
- Excel features beyond basic cells: formulas / tables / conditional formatting / sparklines / pictures / printing?
Rule: If the developer's answer is ambiguous or missing, ask before generating code. Do not guess.
Component Overview
The Excel Export Library provides:
- Exporter factory: Create an exporter targeting XLSX, XLS, or CSV (
XlExport,IXlExporter) - Document and sheet management: Create documents and worksheets sequentially (
IXlDocument,IXlSheet) - Row and column writing: Stream rows and configure columns (
IXlRow,IXlColumn) - Cell authoring: Set values (string, number, bool, date, error), formulas, and formatting (
IXlCell,XlCellFormatting) - Advanced worksheet features: Conditional formatting, tables, sparklines, pictures, data validation, print settings
Core Entry Point
Documentation & Navigation Guide
Getting Started (.NET)
Refer to references/getting-started.md
When you need to:
- Install NuGet packages and set up a .NET project
- Understand the streaming document model
- Create your first XLSX file end-to-end
- Use string formulas (requires XlFormulaParser)
- See a complete working example with headers and data rows
Getting Started (.NET Framework)
Refer to references/getting-started-dotnet-fw.md
When you need to:
- Set up a .NET Framework 4.6.2+ project with assembly references
- Understand which DLLs are required
- Handle framework-specific API differences
Cells and Formatting
Refer to references/cells-and-formatting.md
When you need to:
- Create cells and set values (string, numeric, bool, date, error)
- Apply fonts, colors, background fills, and borders
- Set number formats (currency, date, percentage, custom)
- Align cell content (horizontal, vertical, wrap, indent)
- Apply predefined or theme-based cell styles
- Create rich text (mixed fonts within a single cell)
- Merge cells or add hyperlinks
- Apply conditional formatting rules
Advanced Features
Refer to references/advanced-features.md
When you need to:
- Create Excel tables (IXlTable) with styles and calculated columns
- Add string, expression, or token-based cell formulas
- Create shared formulas or SUBTOTAL aggregations
- Add sparklines (line, column, win/loss) and customize them
- Insert pictures and add hyperlinks to pictures
- Configure print settings, page margins, headers/footers, page breaks, print titles
- Group rows or columns
- Enable AutoFilter on a data range
- Add data validation rules
Quick Start Example
What This Does
Creates SalesReport.xlsx with a styled header row (bold, theme-colored), three data rows with numeric Q1/Q2 values, a formula-driven Total column, a frozen header row, and AutoFilter enabled. No Microsoft Office is required.
Key Properties & API Surface
XlExport (static entry point)
| Method | Return Type | Description | |
|---|---|---|---|
CreateExporter(XlDocumentFormat) | IXlExporter | Create an exporter for XLSX, XLS, or CSV | |
CreateExporter(XlDocumentFormat, XlFormulaParser) | IXlExporter | Create with string formula parsing support |
IXlExporter
| Method | Return Type | Description | |
|---|---|---|---|
CreateDocument(Stream) | IXlDocument | Begin writing a new document to the stream |
IXlDocument
| Property/Method | Type | Description | |
|---|---|---|---|
CreateSheet() | IXlSheet | Add and begin writing a new worksheet | |
Options | IDataAwareExporterOptions | Culture, encoding, and format options | |
Theme | XlDocumentTheme | Active document theme (default: Office 2013) |
IXlSheet
| Property/Method | Type | Description | |
|---|---|---|---|
CreateRow() | IXlRow | Append and begin writing the next row | |
CreateColumn() | IXlColumn | Define the next column (call before rows) | |
Name | string | Worksheet tab name | |
SplitPosition | XlCellPosition | Freeze panes anchor (set before rows/columns) | |
AutoFilterRange | XlCellRange | Range where AutoFilter is applied | |
DataRange | XlCellRange | Range of all data written so far | |
Visible | bool | Show or hide the worksheet tab | |
PrintOptions | XlPrintOptions | Print-related settings | |
PageSetup | XlPageSetup | Page orientation, paper size, scaling | |
PageMargins | XlPageMargins | Margin settings for printing | |
HeaderFooter | XlHeaderFooter | Headers and footers for printed pages | |
PrintTitles | XlPrintTitles | Rows/columns repeated on each printed page |
IXlRow
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dx-office-file-api/skills/devexpress-office-file-api-excel-export/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 8
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/devexpress/agent-skills/devexpress-office-file-api-excel-export)