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:
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):
- Country code (2-3 digits)
- Manufacturer code
- Product code
- Check digit (last digit)
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):
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.
- 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.
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:
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:
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:
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.
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:
- 2 or 3 digits for the number system or the country code
- 5 or 4 digits for the manufacturer code or prefix
- 5 digits for the product code
- 1 digit for the check sum digit
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.
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.
