devexpress-office-file-api-spreadsheet

Create, modify, and export Excel workbooks in .NET using the DevExpress Spreadsheet Document API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building spreadsheet functionality in .NET applications normally requires Microsoft Office installed on the machine or complex interop code. This Skill guides an AI to generate correct code for the DevExpress Spreadsheet Document API, a non-visual .NET library that creates, reads, edits, and exports Excel workbooks programmatically without Office. ## Core Features & Use Cases - Workbook Automation: Create, load, modify, and save .xlsx, .xls, .xlsm, .xlsb, and .csv files using the Workbook and Worksheet classes. - Rich Spreadsheet Features: Apply cell formatting, formulas (including dynamic arrays and UDFs), charts, pivot tables, data validation, conditional formatting, and protection. - Data & Export Pipelines: Import from DataTables, collections, or arrays, and export workbooks to PDF, HTML, or images with full page setup control. - Use Case: A developer needs to generate a formatted quarterly sales report as .xlsx and PDF from a database in an ASP.NET Core app. The Skill provides the exact NuGet package, code patterns, and troubleshooting guidance to implement it. ## Quick Start Ask the AI to create a C# console app that uses the DevExpress Spreadsheet Document API to build a formatted Excel sales report and export it to PDF.

Frequently Asked Questions about devexpress-office-file-api-spreadsheet

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

FAQPage Schema
How do I create an Excel file in C# without Microsoft Office?

Install the DevExpress.Document.Processor NuGet package, create a Workbook instance, write values to worksheet cells, and call SaveDocument with the .xlsx path. The library runs entirely in-process with no Office installation required.

How do I export an Excel workbook to PDF in .NET?

Call workbook.ExportToPdf with the output file path after loading or building the workbook. You can configure page orientation, margins, print areas, and PDF/UA accessibility through worksheet print options and the BeforeExport event.

Does the DevExpress Spreadsheet API work on Linux or Docker?

Yes, the .NET 6/7/8+ version is cross-platform and works on Linux, Docker, and cloud environments. Use DXFontRepository to load custom fonts at runtime since system fonts may be unavailable in those environments.

Why does my formula show as text instead of calculating?

This happens when you assign the formula string to the cell's Value property instead of FormulaInvariant, or when the cell's NumberFormat is set to text. Always use cell.FormulaInvariant with English function syntax for portable, calculated formulas.

Can I import a DataTable into an Excel worksheet?

Yes, call sheet.Import with the DataTable, addHeader set to true, and the starting row and column indices. You can also import from lists of custom objects, one-dimensional arrays, or two-dimensional arrays.

What are the limitations of Excel 2016 chart types in this library?

Box and Whisker, Waterfall, Histogram, Pareto, Funnel, Sunburst, and Treemap charts can be created, loaded, and saved in code, but they cannot be printed or exported to PDF. Standard chart types like column, line, and pie export normally.