Skip to main content

UPC-E1

  • 2 minutes to read

UPC-E1 is a compact UPC-A variant that removes extra zeros for small-package labeling. The symbol uses number system 1 and derives its check digit from the original UPC-A value.

View Example

Examples

Configure Barcode Settings (UPCE1Options)

Use the UPCE1Options class to configure UPC-E1 barcode settings.

The following code snippet creates a Universal Product Code (UPC-E1) barcode and specifies its settings:

DevExpress Barcode Generator - UPC-E1 barcode

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;

var upce1code = UPCE1OptionsBuilder.Create()
    .WithBackColor(Color.LightGray)
    .WithShowText(false)
    .WithPadding(5)
    .WithBorderWidth(1)
    .WithBorderColor(Color.Blue)
    .Build();

var filePath = Path.GetFullPath("upce1_code.png");

using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(upce1code);
generator.Export("4210000526", stream, DXImageFormat.Png);

Configure Barcode Settings (Fluent API)

Use the UPCE1OptionsBuilder class to configure UPC-E1 barcode settings with Fluent API.

The following code snippet creates a Universal Product Code (UPC-E1) barcode and specifies its settings:

DevExpress Barcode Generator - UPC-E1 barcode

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;

var upce1code = UPCE1OptionsBuilder.Create()
    .WithBackColor(Color.LightGray)
    .WithShowText(false)
    .WithPadding(5)
    .WithBorderWidth(1)
    .WithBorderColor(Color.Blue)
    .Build();

var filePath = Path.GetFullPath("upce1_code.png");

using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(upce1code);
generator.Export("4210000526", stream, DXImageFormat.Png);

Symbology-Specific Options

This symbology has no additional options.

See Also