UPCE1Symbology Class
Generates a UPC-E1 bar code.
Namespace: DevExpress.WinUI.Controls
Assembly: DevExpress.WinUI.BarCode.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public class UPCE1Symbology :
SymbologyBase<UPCE1Generator>
#Remarks
UPC-E is a shorter version of UPC-A. It omits the number system digit, leading zeros in the manufacturer code, and trailing zeros in the product code. UPC-E is used on products with small packaging where a full UPC-A barcode does not fit.
The UPC-E1 is a type of UPC-E code with the number system set to 1. In the human-readable barcode string, the first digit is the number system (always 1 for this code type), and the last digit is the check digit of the original UPC-A code.
In the following example, the original UPC-A code is 14210000526. This code (without the number system) is transformed into 425261, the checksum digit (1) is calculated automatically. The number system, the code, and the checksum digit are encoded in a format scanners can read.
<Window ...
xmlns:dxc="using:DevExpress.WinUI.Controls">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<dxc:BarCodeControl Text="14210000526" >
<dxc:BarCodeControl.Symbology>
<dxc:UPCE1Symbology />
</dxc:BarCodeControl.Symbology>
</dxc:BarCodeControl>
</StackPanel>
</Window>