Report Generator FastReport .Net User Guide: EAN-8 Barcode Usage

FastReport .Net is a full-featured Windows Forms, ASP.NET and MVC report analysis solution. Using FastReport .NET can create .NET reports independent of applications. At the same time, FastReport .Net supports 14 languages ​​such as Chinese and English. Report generation for WinForms, Blazor Server, ASP.NET, MVC, .NET 6, and .NET Core.

EAN-8 (European Article Number), also known as GTIN-8, is a short 8-digit barcode. These numbers are divided into 2 blocks of 4 numbers each, the first 2 digits identify the country of origin of the goods, then 5 digits are the encoded information and the last digit is a checksum to verify the integrity of the data.

This code is based on EAN-13, but the code size is reduced to 8 bits.

The code is built on top of EAN-13, reducing the code size to 8 bits.

EANs are used in trade to identify products and equipment.

How the code is formed, each number is encoded in 7 units (vertical line and space), assuming 0 is a space and 1 is a line, then the encoding of the number can be expressed as follows:

  • 0 – 0001101;
  • 1 – 0011001;
  • 2 – 0010011;
  • 3 – 0111101;
  • 4 – 0100011;
  • 5 – 0110001;
  • 6 – 0101111;
  • 7 – 0111011;
  • 8 – 0110111;
  • 9 – 0001011。

Let's look at this example:

Remember, the code starts with 101, then the code for the number 3, and so on. As mentioned above, the code is divided into two parts, the separator line and the start and end lines of the code are long, which is indicated by the 01010 code.

If you look closely, you'll notice that the lines after the delimiter don't correspond to the numbers in the list above, because the second part uses a different encoding:

· 0 – 1110010;

· 1 – 1100110;

· 2——1101100;

· 3 – 1000010;

· 4 – 1011100;

· 5 – 1001110;

· 6 – 1010000;

· 7 – 1000100;

· 8 – 1001000;

· 9 – 1110100。

To add an EAN-8 barcode to a report page, use the

Report the Barcode object on the Components sidebar in the report designer and select the code:

To edit the code, double-click the added object or select the "Edit..." item in the context menu:

You can hide the numbers below the code using the ShowText property in the Barcode object's Property inspector:

Guess you like

Origin blog.csdn.net/m0_67129275/article/details/131655849