How to create, print EAN-13 in SSRS Reports in ASP.NET, WinForms application?

Create EAN-13 Barcodes in SSRS Reports Projects Using .NET Control

Generate & print EAN 13 barcodes in SQL Server Reporting Services 2005, 2008, 2008R2, 2012, 2014

  • Generate EAN 13 barcodes in Microsoft SQL Server Reporting Services (SSRS) reports.
  • Using Barcode Custom Report Item (CRI) to print high-quality EAN-13, EAN-13+2, EAN-13+5.
  • Drag & drop EAN 13 barcode report item to your Reporting Service report layout page.
  • Completely developed in C# managed code with digital signature.
  • Fully compatible with SQL Server Reporting Services 2005 and 2008 versions.
  • Reliable & mature EAN 13 barcode generation for Reporting Service using .NET Barcode Generator.
Here we will learn how to generate EAN-13 barcode (a 13-digit linear barcode symbology used for global product identification) in your SQL Server Reporting Service (SSRS) reports in Visual Studio projects.
  • Step-by-step instructions to generate EAN-13 barcodes in SSRS Paginated Reports using the OnBarcode Barcode Generator for SSRS report.
  • All EAN-13 property settings are configured exclusively in the Report Item Property pane during report design in SSRS
  • Detailed coverage of EAN-13 core features: data requirements, 2-digit or 5-digit add-on symbols, human-readable interpretation (HRI) customization, and check digit calculation/verification, all tailored for SSRS integration.





EAN-13 Barcode Add-on Symbol in SSRS Reports

EAN-13 barcodes encode digits (0-9) only. They consist of 12 data digits and 1 check digit, divided into four parts:
  • Country code (2-3 digits)
  • Manufacturer code
  • Product code
  • Check digit (last digit)
EAN-13 barcodes may include a two-digit or five-digit add-on symbol. This add-on symbol is positioned after the right quiet zone of the main EAN-13 symbol, often used for additional product information (e.g., weight, price) in SSRS retail reports.

To create a valid EAN-13 barcode with an add-on symbol in your SSRS report, follow these settings (all configured in the Report Item Property pane):
  • Set the Type property to EAN13_2 for a two-digit add-on, or EAN13_5 for a five-digit add-on.
  • Set the Data property to the main EAN-13 data (12 or 13 digits), binding it to your SSRS dataset Field.
  • Set the SupData property to the add-on data (2 or 5 digits, matching the selected add-on type).



Note: Ensure the add-on data length matches the selectedType (2 digits for EAN13_2, 5 digits for EAN13_5). Mismatched lengths will result in invalid barcodes in your SSRS report.


EAN-13 Barcode Text (Human Readable Interpretation) in SSRS Reports

The GS1 System recommends using the OCR-B font for the digits displayed under the EAN-13 barcode (known as the Human Readable Interpretation, HRI). This ensures compliance and readability for retail and supply chain use cases where your SSRS report will be used.

The OnBarcode library provides two key properties to customize the HRI in your SSRS report (both configured in the Report Item Property pane):
  • TextFont: Customizes the font, size, and style of the HRI digits.
  • TextMargin: Sets the space between the top of the HRI digits and the bottom of the barcode bars.
Key requirements for the HRI space:
  • The minimum space between the top of the digits and the bottom of the bars shall be 0.5X (X = width of the narrow element).
  • Normally, this space is set to 1X for optimal readability in SSRS reports.
You can find free OCR-B font resources for GS1 linear barcodes online. Ensure the font is installed on the Report Server to avoid font rendering issues in your SSRS report.


Note: If the OCR-B font is not installed on the Report Server, the HRI will render with a default font, which may not comply with GS1 standards and could cause readability issues in your SSRS report.


Customize EAN-13 Barcode in SSRS Reports

Using the OnBarcode SSRS Barcode Generator library, you can further customize your EAN-13 barcode to fit your SSRS report's layout and compliance requirements. The following properties are available (all configured in the Report Item Property pane):
  • ShowQuietZoneIndicator: Displays or hides the EAN barcode quiet zone indicator. The default value is true.
  • UPCEANLeadDigitSpace: Sets the space between the first digit and the start character bar. The default value is 0.
  • UPCEANTrailDigitSpace: Sets the space between the stop character bar and the quiet zone indicator. The default value is 0.


EAN Barcode Quiet Zone Indicator

The quiet zone indicator is a small mark at the end of the EAN-13 barcode, indicating the end of the quiet zone. By default, the library displays this indicator in your SSRS report.

To hide the quiet zone indicator:
  • Set the ShowQuietZoneIndicator property to false in the Report Item Property pane.



EAN-13 First and Last Digit Space

You can adjust the space around the first and last digits of the EAN-13 barcode to improve readability or fit your SSRS report's layout.

To adjust these spaces:
  • Set UPCEANLeadDigitSpace to increase the space between the first digit and the start bar.
  • Set UPCEANTrailDigitSpace to increase the space between the stop character bar and the quiet zone indicator.



Note: Avoid setting these spaces too large, as this may increase the overall barcode width and cause clipping in your SSRS report's Data Region (e.g., Tablix).


EAN-13 Check Digit Verification and Calculation in SSRS Reports

The EAN-13 check digit is calculated using a modulo 10 algorithm. This check digit ensures data integrity, critical for accurate product identification in SSRS reports used in retail and supply chain workflows.

Key details for SSRS implementation:
  • If you provide 12 digits in the Data property (bound to your SSRS dataset Field), the OnBarcode library will automatically calculate and add the check digit.
  • If you provide 13 digits, the library will verify that the 13th digit is the correct check digit for the first 12 digits.


Note: If the 13th digit in your SSRS dataset Field is not the correct check digit, the library will generate an invalid EAN-13 barcode, which will not scan correctly. Always validate check digits in your dataset before encoding.












Common Asked Questions

What is the EAN-13 code?

EAN-13 barcode is one of the GS1 standard supported barcode symbology, and it is the most commonly recognized barcode in Europe. EAN-13 code is a 13-digit number, which includes 12 GS1 data digits and 1 check digit. EAN is short for European Article Number, and now it is renamed as GTIN (Global Trade Item Number). EAN 13 code will be used to uniquely identify retail products worldwide.

Using SQL Server Reporting Services barcode generator add-in, you can create, customize and insert EAN-13 barcodes in SSRS report table columns in SSRS report desginer using Visual Studio .NET.

What is the EAN-13 barcode layout?

The whole 13 digits EAN-13 code is containing:
  1. 2 or 3 digits for the number system or the country code
  2. 5 or 4 digits for the manufacturer code or prefix
  3. 5 digits for the product code
  4. 1 digit for the check sum digit
Using SQL Server Reporting Services barcode generator plugin, you can provide EAN-13 12-digit data or complete 13 digits text with check digit from your SSRS report data source.

What is the difference between EAN and EAN-13?

EAN includes EAN-13, EAN-8 and with 2 or 5 digits add-on symbol. OnBarcode SQL Server Reporting Services EAN Barcode Generator add-in supports both EAN-13 and EAN-8 barcode printing in SSRS report designer and report viewer in Microsoft Visual Studio with the SSRS Report Designer extension.

How to check if the EAN-13 barcode created in SSRS report is valid?

The last digit (13th) of EAN-13 is a check digit. It will be used to verify the first 12-digit GS1 data message. You can use OnBarcode free EAN-13 barcode scanner software to scan, and test the generated EAN barcodes in SSRS reports on Windows.

How do I print high quality EAN-13 barcodes in SSRS reports?

To print good quality EAN-13 barcodes in SSRS reports in .NET ASP.NET, Windows projects, you need follow the rules below.
  • The EAN-13 barcode image resolution (DPI) is the same or higher than the printer's resolution.
  • The EAN-13 barcode human readable text is using the legible fonts. The GS1 System recommends use OCR-B font to draw EAN-13 text label.
SQL Server Reporting Services Barcode Generator software supports EAN-13 barcode with high resolutions and customized text font in SSRS report designer.

What is the minimum size for EAN-13?

The GS1 recommended minimum size for an EAN-13 barcode is 30mm in width and 20 mm in height. You can easily customize the printed EAN-13 barcode dimension width and height in SSRS report designer report item property settings.







































Start with free trial package:








































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.