devexpress-office-file-api-word-processing

Create, modify, and export Word documents in .NET using the DevExpress Word Processing Document API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building .NET applications that create, read, edit, or convert Word documents normally requires Microsoft Office or complex Open XML manipulation. This Skill provides guidance for using the DevExpress Word Processing Document API (RichEditDocumentServer) to handle .docx, .doc, .rtf, .odt, and other formats entirely in code, without Office installed. ## Core Features & Use Cases - Document Authoring & Formatting: Create paragraphs, tables, lists, styles, headers/footers, shapes, and images programmatically in C#. - Mail Merge & Reporting: Generate personalized letters, invoices, and master-detail reports from DataTables, DataSets, or object collections. - Conversion & Security: Export documents to PDF (including PDF/A and PDF/UA), HTML, or images, and apply encryption, editing restrictions, or content sanitization. - Use Case: A backend service needs to generate monthly customer statements as PDFs from a Word template. Load the template, run a mail merge against the customer database, and export the result to PDF — all server-side with no Office dependency. ## Quick Start Ask the AI to create a C# console app that uses DevExpress.Document.Processor to generate a formatted Word document and export it to PDF.

Frequently Asked Questions about devexpress-office-file-api-word-processing

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

FAQPage Schema
How do I create a Word document in C# without Microsoft Office?

Install the DevExpress.Document.Processor NuGet package and use RichEditDocumentServer to build documents in code. Append text with Document.AppendText, format via BeginUpdateCharacters/EndUpdateCharacters, then call SaveDocument with DocumentFormat.Docx.

How to perform a mail merge in .NET with a Word template?

Load a template containing MERGEFIELD fields into RichEditDocumentServer, assign a DataTable or object collection to Document.MailMergeDataSource, and call MailMerge with MailMergeOptions. Master-detail reports use TableStart and TableEnd region markers inside table rows.

Does the DevExpress Word Processing API support .NET Framework?

Yes, it supports .NET Framework 4.6.2+ as well as .NET 6/7/8+. On .NET Framework you can reference DevExpress assemblies directly from the Unified Installer or use the same DevExpress.Document.Processor NuGet package.

Can I export a Word document to PDF on Linux?

Yes, ExportToPdf works cross-platform, but PDF export on Linux requires ICU libraries. If you see a 'No usable version of ICU libraries' error, install libicu or set the DXEXPORT_ICU_VERSION_OVERRIDE environment variable.

Why does my mail merge produce blank fields?

Blank merged fields occur when MERGEFIELD names do not exactly match the data source column names; matching is case-sensitive. Verify each field code in the template against the DataTable columns or object property names.

What are the limitations of comparing two Word documents programmatically?

The Compare method requires both input documents to have zero existing tracked revisions, so accept or reject all revisions first. Comments, tables, math equations, fields, and content controls are ignored during comparison.