Examples

Create 2D Barcodes (.NET)

DynamicBarcode Creator makes creating barcodes straightforward. Use one of the following 2D barcodes in your applications.

How to Create Aztec using DynamicBarcode Creator (C#)

The following steps and sample code illustrates generating an Aztec barcode using DynamicBarcode Creator.

Steps for creating Aztec barcode

  1. Create an Aztec object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Aztec barcode = new Aztec("Hello World", AztecSymbolSize.Full);
barcode.Draw(@"Aztec.png", 300, ImageFormat.Png);  

How to create QRCode in C#

The following steps and sample code illustrates creating a QRCode using DynamicBarcode Creator.

Steps for creating QRCode barcode

  1. Create QRCode with text.
  2. Draw the barcode to a PNG image.

Sample Code - C#

QRCode barcode = new QRCode("Hello World");
barcode.Draw(@"qrcode.png", 300, ImageFormat.Png);

How to create PDF417 barcode in C#

The following steps and sample code illustrates creating a PDF417 barcode using DynamicBarcode Creator.

Steps for creating PDF417 barcode

  1. Create Pdf417 with text.
  2. Draw the barcode to a BMP image.

Sample Code - C#

Pdf417 barcode = new Pdf417("Hello World",3);
barcode.Draw(@"pdf417.bmp", 300, ImageFormat.Bmp);

How to create MacroPdf417 barcode in C#

The following steps and sample code illustrates creating a MacroPdf417 barcode using DynamicBarcode Creator.

Steps for creating MacroPdf417 barcode

  1. Create MacroPdf417 with text.
  2. Draw the barcode to a BMP image.

Sample Code - C#

MacroPdf417 barcode = new MacroPdf417("Hello World",3,3);
barcode.Draw(pngFilePath, 300, ImageFormat.Png);   

How to create Data Matrix barcode in C#

The following steps and sample code illustrates creating a Data Matrix barcode using DynamicBarcode Creator.

Steps for creating Data Matrix barcode

  1. Create DataMatrixBarcode with text.
  2. Draw the barcode to a PNG image.

Sample Code - C#

DataMatrixBarcode barcode = new DataMatrixBarcode("Hello World");
barcode.Draw(@"datamatrix.png", 300, ImageFormat.Png);

GitHub Project

Clone or view the example project at GitHub. The examples on this page are in the TwoDimensionalBarcode.cs file.

Clone or View Example Project on GitHub

Getting Started

NuGet Package

DynamicBarcode Creator is available on NuGet and is part of the ceTe.DynamicBarcode.Creator.NET package.

NuGet Package ID: ceTe.DynamicBarcode.Creator.NET

DynamicBarcode Creator Library is available for WPF is part of the ceTe.DynamicBarcode.Creator.WPF package.

NuGet Package ID: ceTe.DynamicBarcode.Creator.WPF

DynamicPDF Information

More information can be found here:

Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 22 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!