devexpress/agent-skills/devexpress-office-file-api-barcode
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 Barcode Generation API for generating barcode images programmatically. Use when generating QR codes, Data Matrix, Code 128, EAN, UPC, PDF417, Aztec, GS1 barcodes, or any 1D/2D barcode type. Also use when someone mentions "DevExpress Barcode", "BarCode", "DevExpress.BarCodes", "generate QR code C#", "barcode image .NET", "create barcode programmatically", or asks about any barcode generation with DevExpress. Covers both .NET and .NET Framework.
Install
npx vskill@latest install devexpress/agent-skills/devexpress-office-file-api-barcodeSKILL.md
DevExpress Barcode Generation API
The Barcode Generation API is a non-visual .NET library for generating barcode images programmatically. It supports over 30 barcode symbologies — 1D and 2D — and can export barcode images to PNG, BMP, JPEG, TIFF, GIF, and PDF formats. The primary namespace is DevExpress.Docs.Barcode; a legacy namespace DevExpress.BarCodes is also available but is not recommended for new development.
When to Use This Skill
Use this skill when you need to:
- Generate QR Code images from URLs, text, or binary data
- Generate Data Matrix barcodes for product labeling or manufacturing
- Generate PDF417 barcodes for transport, ID cards, and inventory
- Generate Aztec Code barcodes for ticketing and logistics
- Generate EAN-13, EAN-8, UPC-A, or UPC-E barcodes for retail
- Generate GS1 QR Code or GS1 Data Matrix for GS1-compliant workflows
- Generate EPC QR Codes for SEPA credit transfers
- Generate Code 128, Code 39, or Code 93 linear barcodes
- Export barcode images to PNG, BMP, JPEG, TIFF, GIF, or PDF
- Customize barcode appearance (colors, module size, DPI, quiet zone, border)
- Display or embed barcodes in ASP.NET, Blazor, WinForms, WPF, or MAUI apps
Prerequisites & Installation
NuGet Packages
| Package | Purpose | |
|---|---|---|
DevExpress.Document.Processor | Full Office File API suite (includes DevExpress.Docs.Barcode) | |
DevExpress.Docs.Barcode | Barcode-only package — use when you don't need Word/Excel/PDF APIs |
.NET (8/9/10+)
.NET Framework (4.6.2+)
Important: All DevExpress packages in a project must share the same version number. A valid DevExpress license is required.
Non-Windows Development (Linux, macOS, Docker, Cloud)
Barcode image export (ExportToImage, DXImage) uses the same platform-specific drawing engine as the rest of Office File API: GDI+ on Windows, SkiaSharp elsewhere. The SkiaSharp-based engine is enabled automatically on non-Windows platforms.
See references/getting-started.md for the full non-Windows setup and troubleshooting guide.
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?
Barcode-Specific Questions
- Barcode type: QR Code / Data Matrix / Code 128 / EAN-13 / UPC-A / PDF417 / Aztec / GS1 / other?
- Output format: Save as PNG/BMP/JPEG/TIFF image file / get as Stream / embed in Word/Excel/PDF document?
- Special requirements: GS1 encoding / EPC QR Code / quiet zone size / module size / colors / human-readable text?
Rule: If the developer's answer is ambiguous or missing, ask before generating code. Do not guess.
Component Overview
The Barcode Generation API provides:
- Barcode creation: Instantiate
BarcodeGeneratorwith a symbology-specific options object (QRCodeOptions,Code128Options,DataMatrixOptions, etc.) - Common options: Configure appearance and layout via
BarcodeOptionsproperties (colors, DPI, module size, rotation, border, text) - Symbology-specific options: Each barcode type exposes its own options class with symbology-specific properties
- Export: Write to
Streamas image or PDF, or get aDXImageobject, viaBarcodeGenerator.Export(),ExportToImage(),ExportToPdf() - Fluent API: Some symbologies expose
XxxOptionsBuilderclasses for a builder-style configuration pattern — check barcode-options.md for confirmed availability per type
Core Entry Point
Documentation & Navigation Guide
Getting Started
Refer to references/getting-started.md
When you need to:
- Set up the Barcode Generation API for the first time
- Install and configure the NuGet package
- Generate your first QR Code barcode image
- See a complete step-by-step working example
Barcode Types
Refer to references/barcode-types.md
When you need to:
- Choose the right barcode symbology for your use case
- See all supported 1D and 2D barcode types
- Find the options class name for a specific barcode type
- See code examples for QR Code, Data Matrix, PDF417, Code 128
- Understand GS1, EPC, and postal barcode specifics
Barcode Options & Export
Refer to references/barcode-options.md
When you need to:
- Configure colors, module size, DPI, rotation, border, quiet zone
- Show or hide human-readable text below/above the barcode
- Save a barcode as a PNG, BMP, JPEG, TIFF, GIF, or PDF file
- Get a barcode as a
StreamorDXImage - Embed a barcode image in a Word Processing, Spreadsheet, or Presentation document
- Understand the difference between
ExportToImage()andExport(stream) - Understand all configurable
BarcodeOptionsproperties
New Barcode API, Fluent Builder & Async Export (v26.1+)
Refer to references/new-barcode-api.md
When you need to:
- Use the fluent
XxxOptionsBuilder.Create()...Build()pattern for type-safe configuration - Export barcodes asynchronously (
ExportAsync,ExportToImageAsync) - Use Micro QR Code (
MicroQRCodeOptions,MicroQRCodeOptionsBuilder) - Migrate from the legacy
DevExpress.BarCodesnamespace - Use a standalone
DevExpress.Docs.BarcodeNuGet package without the full Office File API
Quick Start Example
A complete example — generate a QR Code and save it as PNG:
What This Does
Creates a QR Code encoding the URL https://www.devexpress.com and saves it as qrcode.png in the working directory. The ModuleSize controls the size of each QR module in pixels; ErrorCorrectionLevel.Q provides 25% error correction capacity.
Key Properties & API Surface
BarcodeGenerator
| Property/Method | Type | Description | |
|---|---|---|---|
BarcodeGenerator(BarcodeOptions) | ctor | Creates a generator with the specified options object | |
Export(string, Stream, DXImageFormat) | void | Exports barcode as image to a stream | |
ExportToImage(string, DXImageFormat) | DXImage | Returns a DXImage object (in-memory) | |
ExportToPdf(string, Stream) | void | Exports barcode as a vector PDF to a stream | |
Options | BarcodeOptions | The current options object | |
Dispose() | void | Releases resources; use using statement |
BarcodeOptions (common properties, all symbologies)
| Property | Type | Description | |
|---|---|---|---|
BackColor | Color | Barcode background color | |
ForeColor | Color | Bar / module foreground color | |
BorderColor | Color | Border color | |
BorderStyle | BorderStyle | Border style (None, Center, etc.) | |
BorderDashStyle | BorderDashStyle | Border dash style | |
BorderWidth | float | Border thickness | |
RotationAngle | float | Rotation in degrees (0, 90, 180, 270) | |
Dpi | float | Output resolution in dots per inch | |
ModuleSize | float | Width of the narrowest bar/module | |
ShowText | bool | Whether to show human-readable text | |
TextFont | DXFont | Font for the human-readable text | |
CodeTextHorizontalAlignment | DXStringAlignment | Horizontal text alignment | |
CodeTextVerticalAlignment | DXStringAlignment | Vertical text alignment | |
Padding | Padding | Internal padding around the barcode |
QRCodeOptions (symbology-specific)
| Property | Type | Description | |
|---|---|---|---|
CompactionMode | QRCodeCompactionMode | Data compaction mode (Auto, Byte, Numeric, Alphanumeric) | |
ErrorCorrectionLevel | QRCodeErrorCorrectionLevel | Error correction (L=7%, M=15%, Q=25%, H=30%) | |
Version | QRCodeVersion | QR Code version (1-40 or Auto) | |
IncludeQuietZone | bool | Whether to include the quiet zone around the symbol | |
Logo | DXImage | Embedded logo image in the QR Code center |
Common Patterns
Save Barcode to File (PNG)
Get Barcode as DXImage (in-memory)
Export Barcode to PDF
Customize Colors and Border
Configure Options — Direct Assignment
Configure Options — Fluent Builder (v26.1+)
Many symbologies now also expose an XxxOptionsBuilder for a chainable builder pattern. See references/new-barcode-api.md for confirmed per-type availability and examples.
Version-Specific Notes
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-barcode/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-barcode)