Examples

Create Linear Barcodes (.NET)

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

Codabar Code11 Code25 Code39
Code93 Code128 EAN8 EAN13
EAN14 UPC-A UPC-E ISBN
ISMN ISSN GS1 DataBar IATA25
Interleaved25 ITF14 Stacked GS1 DataBar

How to Create a Codabar Using the DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating a Codabar barcode using DynamicBarcode Creator.

Steps for creating Codabar Barcode

  1. Create a Codabar object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Codabar barcode = new Codabar("A1234A", 100);
barcode.Draw("Codabar.png", 300, ImageFormat.Png);  

How to Generate Code11 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating a Code11 barcode using DynamicBarcode Creator.

Steps for creating Code11 barcode

  1. Create a Code11 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Code11 barcode = new Code11("12345678", 50);
barcode.Draw("Code11.png", 300, ImageFormat.Png);  

How to Create Code25 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating a Code25 barcode using DynamicBarcode Creator.

Steps for creating Code25 barcode

  1. Create a Code25 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Code25 barcode = new Code25("123456789", 100);
barcode.Draw("Code25.png", 300, ImageFormat.Png);  

How to Create Code39 using DynamicBarcode Creator(C#)

The following steps and sample code illustrate generating a Code39 barcode using DynamicBarcode Creator.

Steps for creating Code39 barcode

  1. Create a Code39 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Code39 barcode = new Code39("123456789", 100);
barcode.Draw("Code39.png", 300, ImageFormat.Png);  

How to Create Code93 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating a Code93 barcode using DynamicBarcode Creator.

Steps for creating Code93 barcode

  1. Create a Code93 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Code93 barcode = new Code93("1234567890");
barcode.Draw("Code93.png", 300, ImageFormat.Png);  

How to Create Code128 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating a Code128 barcode using DynamicBarcode Creator.

Steps for creating Code128 barcode

  1. Create a Code128 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Code128 barcode = new Code128("hello world", 100);
barcode.Draw("Code128.png", 300, ImageFormat.Png);  

How to Create EAN 8 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an EAN 8 barcode using DynamicBarcode Creator.

Steps for creating EAN 8 barcode

  1. Create a Ean8 object and set the necessary Parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean8 barcode = new Ean8("12345670");
barcode.Draw("Ean8.png", 300, ImageFormat.Png);  

How to Create EAN 8 Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an EAN 8 Supplement2 barcode using DynamicBarcode Creator.

Steps for creating EAN 8 Supplement2 barcode

  1. Create a Ean8Supplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean8Supplement2 barcode = new Ean8Supplement2("12345670","12");
barcode.Draw("Ean8Supplement2.png", 300, ImageFormat.Png);  

How to Create EAN 8 Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an EAN 8 Supplement5 barcode using DynamicBarcode Creator.

Steps for creating EAN 8 Supplement5 barcode

  1. Create a Ean8Supplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean8Supplement5 barcode = new Ean8Supplement5("12345670","12345");
barcode.Draw("Ean8Supplement5 .png", 300, ImageFormat.Png);  

How to Create EAN13 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an EAN13 barcode using DynamicBarcode Creator.

Steps for creating EAN13 barcode

  1. Create a Ean13 object and set the necessary Parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean13 barcode = new Ean13("123456789012");
barcode.Draw("Ean13.png", 300, ImageFormat.Png);  

How to create EAN13 Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating an Ean13Supplement2 barcode using DynamicBarcode Creator.

Steps for creating EAN13 Supplement2 barcode

  1. Create a Ean13Supplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean13Supplement2 barcode = new Ean13Supplement2("123456789012","12");
barcode.Draw("Ean13Supplement2.png", 300, ImageFormat.Png);  

How to create EAN13 Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate generating an Ean13Supplement5 barcode using DynamicBarcode Creator.

Steps for creating EAN13 Supplement5 barcode

  1. Create a Ean13Supplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean13Supplement5 barcode = new Ean13Supplement5("123456789012","12345");
barcode.Draw("Ean13Supplement5.png", 300, ImageFormat.Png);  

How to Create Ean14 barcode using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an Ean14 barcode image using DynamicBarcode Creator.

Steps for creating Ean14 barcode

  1. Create a Ean14 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ean14 barcode = new Ean14("1234567890123");
barcode.Draw("Ean14.png", 300, ImageFormat.Png);  

How to Create UPC-A using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-A barcode using DynamicBarcode Creator.

Steps for creating UPC-A barcode

  1. Create a UpcA object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcA barcode = new UpcA("12345678901");
barcode.Draw("UpcA.png", 300, ImageFormat.Png);  

How to create UPC-A Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-A Supplement2 barcode using DynamicBarcode Creator.

Steps for creating UPC-A Supplement2 barcode

  1. Create a UpcASupplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcASupplement2 barcode = new UpcASupplement2("12345678901","12");
barcode.Draw("UpcASupplement2.png", 300, ImageFormat.Png);  

How to create UPC-A Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-A Supplement5 barcode using DynamicBarcode Creator.

Steps for creating UPC-A Supplement5 barcode

  1. Create a UpcASupplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcASupplement5 barcode = new UpcASupplement5("12345678901","12345");
barcode.Draw("UpcASupplement5.png", 300, ImageFormat.Png);  

How to Create UPC-E using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-E barcode using DynamicBarcode Creator.

Steps for creating UpcE barcode

  1. Create a UpcE object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcE barcode = new UpcE("0123456");
barcode.Draw("UpcE.png", 300, ImageFormat.Png);  

How to Create UpcESupplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-E Supplement2 using DynamicBarcode Creator.

Steps for creating UpcESupplement2 barcode

  1. Create a UpcESupplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcESupplement2 barcode = new UpcESupplement2("0123456","12");
barcode.Draw("UpcESupplement2.png", 300, ImageFormat.Png);  

How to Create UPC-E Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a UPC-E Supplement5 barcode using DynamicBarcode Creator.

Steps for creating UPC-E Supplement5 barcode

  1. Create a UpcESupplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

UpcESupplement5 barcode = new UpcESupplement5("0123456","12345");
barcode.Draw("UpcESupplement5.png", 300, ImageFormat.Png);  

How to Create ISBN Barcode using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISBN barcode using DynamicBarcode Creator.

Steps for creating ISBN barcode

  1. Create a Isbn object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Isbn barcode = new Isbn("978-1-23-456789-7");
barcode.Draw("Isbn.png", 300, ImageFormat.Png);  

How to Create ISBN Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISBN Supplement2 barcode using DynamicBarcode Creator.

Steps for creating ISBN Supplement2 barcode

  1. Create a IsbnSupplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IsbnSupplement2 barcode = new IsbnSupplement2("978-1-23-456789-7","12");
barcode.Draw("IsbnSupplement2.png", 300, ImageFormat.Png);  

How to create ISBN Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISBN Supplement5 barcode using DynamicBarcode Creator.

Steps for creating ISBN Supplement5 barcode

  1. Create a IsbnSupplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IsbnSupplement5 barcode = new IsbnSupplement5("978-1-23-456789-7","12345");
barcode.Draw("IsbnSupplement5.png", 300, ImageFormat.Png);  

How to Create ISMN using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISMN barcode using DynamicBarcode Creator.

Steps for creating ISMN barcode

  1. Create a Ismn object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Ismn barcode = new Ismn("979-0-1234-5678");
barcode.Draw("Ismn.png", 300, ImageFormat.Png);  

How to Create ISMN Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISMN Supplement2 barcode using DynamicBarcode Creator.

Steps to generate ISMN Supplement2 barcode

  1. Create a IsmnSupplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IsmnSupplement2 barcode = new IsmnSupplement2("979-0-1234-5678","12");
barcode.Draw("IsmnSupplement2.png", 300, ImageFormat.Png);  

How to Create ISMN Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISMN Supplement5 barcode using DynamicBarcode Creator.

Steps to generate ISMN Supplement5 barcode

  1. Create a IsmnSupplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IsmnSupplement5 barcode = new IsmnSupplement5("979-0-1234-5678","12345");
barcode.Draw("IsmnSupplement5.png", 300, ImageFormat.Png);  

How to Create ISSN using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISSN barcode using DynamicBarcode Creator.

Steps for creating ISSN barcode

  1. Create a Issn object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Issn barcode = new Issn("977-1234-56700");
barcode.Draw("Issn.png", 300, ImageFormat.Png);  

How to Create ISSN Supplement2 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISSN Supplement2 using DynamicBarcode Creator.

Steps for creating ISSN Supplement2 barcode

  1. Create a IssnSupplement2 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IssnSupplement2 barcode = new IssnSupplement2("977-1234-56700","12");
barcode.Draw("IssnSupplement2.png", 300, ImageFormat.Png);  

How to Create ISSN Supplement5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ISSN Supplement5 barcode using DynamicBarcode Creator.

Steps for creating ISSN Supplement5 barcode

  1. Create a IssnSupplement5 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

IssnSupplement5 barcode = new IssnSupplement5("977-1234-56700","12345");
barcode.Draw("IssnSupplement5.png", 300, ImageFormat.Png);  

How to Create GS1 DataBar using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an GS1 DataBar barcode using DynamicBarcode Creator.

Steps for creating GS1 DataBar barcode

  1. Create a GS1DataBar object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

GS1DataBar barcode = new GS1DataBar("(01)9889876543210", 100, GS1DataBarType.OmniDirectional);
barcode.Draw("GS1DataBar .png", 300, ImageFormat.Png);  

How to Create Stacked GS1 DataBar using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a Stacked GS1 DataBar barcode using DynamicBarcode Creator.

Steps for creating Stacked GS1 DataBar barcode

  1. Create a StackedGS1DataBar object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

StackedGS1DataBar barcode = new StackedGS1DataBar("(01)9889876543210", 50, StackedGS1DataBarType.StackedOmnidirectional);
barcode.Draw("StackedGS1DataBar.png", 300, ImageFormat.Png);  

How to Create IATA-25 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating a IATA-25 barcode using DynamicBarcode Creator.

Steps for creating IATA-25 barcode

  1. Create a Iata25 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Iata25 barcode = new Iata25("1234567");
barcode.IncludeCheckDigit = true;
barcode.Draw(@"Iata25.png", 300, ImageFormat.Png);  

How to Create Interleaved 2 of 5 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an Interleaved 2 of 5 barcode using DynamicBarcode Creator.

Steps for creating Interleaved 2 of 5 barcode

  1. Create a Interleaved25 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Interleaved25 barcode = new Interleaved25("1234567890", 100);
barcode.Draw("Interleaved25.png", 300, ImageFormat.Png);  

How to Create ITF-14 using DynamicBarcode Creator (C#)

The following steps and sample code illustrate creating an ITF-14 barcode using DynamicBarcode Creator.

Steps for creating ITF-14 barcode

  1. Create a Itf14 object and set the necessary parameters.
  2. Draw the barcode to PNG file.

Sample code - C#

Itf14 barcode = new Itf14("1234567890123");
barcode.Draw("Itf14.png", 300, ImageFormat.Png);  

GitHub Project

Clone or view the example project at GitHub. The examples on this page are in the LinearBarcode.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!