devexpress-office-file-api-barcode

Generate 1D and 2D barcode images in .NET applications using the DevExpress Barcode Generation API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Developers often need to programmatically create barcode images (QR codes, Data Matrix, Code 128, EAN, UPC, PDF417, and more) in .NET applications, but configuring symbology-specific options, export formats, and DevExpress licensing correctly requires detailed API knowledge. ## Core Features & Use Cases - 30+ Barcode Symbologies: Generate QR Code, Data Matrix, PDF417, Aztec, Code 128, EAN-13, UPC-A, GS1 variants, postal barcodes, and Micro QR Code via dedicated options classes. - Flexible Export: Save barcodes as PNG, BMP, JPEG, TIFF, GIF, or vector PDF, or obtain in-memory DXImage objects and streams for embedding in Word, Excel, or Presentation documents. - Appearance Customization: Control colors, module size, DPI, rotation, borders, quiet zones, and human-readable text, with a fluent builder pattern and async export in v26.1+. - Use Case: Build an ASP.NET Core endpoint that generates a GS1-compliant QR Code for a shipping label, exports it as a 300-DPI PNG, and embeds it into a generated invoice document. ## Quick Start Ask the AI to generate a QR Code PNG from a URL in a .NET project using the DevExpress Barcode Generation API with the DevExpress.Document.Processor NuGet package.

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

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

FAQPage Schema
How do I generate a QR Code in C# with DevExpress?

Create a QRCodeOptions object, set properties like ModuleSize, Dpi, and ErrorCorrectionLevel, then pass it to a BarcodeGenerator and call Export with your data, a stream, and DXImageFormat.Png. Install the DevExpress.Document.Processor NuGet package first.

What barcode types does the DevExpress Barcode Generation API support?

It supports over 30 symbologies including QR Code, Data Matrix, PDF417, Aztec, Code 128, Code 39, EAN-13, EAN-8, UPC-A, GS1 variants, PostNet, Intelligent Mail, and Micro QR Code in v26.1+. Each type has a dedicated options class like QRCodeOptions or Code128Options.

Which NuGet package do I need for DevExpress barcode generation?

Use DevExpress.Document.Processor for the full Office File API suite, or DevExpress.Docs.Barcode for a barcode-only package with smaller footprint. All DevExpress packages in a project must share the same version, and a valid license is required.

Does the DevExpress Barcode API work with .NET Framework?

Yes, it supports .NET 6, 7, 8+ and .NET Framework 4.6.2 or later. Use the modern DevExpress.Docs.Barcode namespace rather than the legacy DevExpress.BarCodes namespace for new development.

Why is my generated barcode not readable by scanners?

Common causes include a ModuleSize too small for the output DPI, missing quiet zone, or encoding mismatch between generator and scanner. Increase ModuleSize, ensure ModuleSize times Dpi yields an integer pixel count, and verify the scanner supports the symbology.

How do I embed a barcode image into a Word document?

Export the barcode to a MemoryStream using BarcodeGenerator.Export, reset the stream position to zero, then insert it with DocumentImageSource.FromStream and the RichEditDocumentServer image API. Similar patterns work for Spreadsheet and Presentation documents.