RDLC Barcode How-Tos
PM > Install-Package BarcodeLib.RDLC


In this article
Home > .NET RDLC Reports Barcode > RDLC Reports Barcode Generation Guide > EAN-13 Barcode Generation Guide in RDLC Reports

.NET RDLC Reports EAN-13 Barcode Generator

How to create, print EAN-13 in .NET RDLC reports
The EAN-13 barcode generator for RDLC client reports is an easy to use .NET control based on Visual Studio, designed for use in both Windows RDLC and ASP.NET RDLC environments. It enables generation of high quality barcode images in RDLC local reports using C# or VB.NET class libraries.



How to Generate EAN-13 in .NET RDLC Local Reports

BarcodeLib provides step by step tutorials for printing barcodes in RDLC reports using C# in ASP.NET and Windows Forms applications.
  • How to print barcodes in RDLC reports in ASP.NET web form applications
  • How to print barcodes in RDLC reports in Windows Forms applications
In the above tutorials, Code 128 barcodes are created and printed in RDLC reports. The following instructions update the C# demonstration code to print EAN-13 barcodes in RDLC reports.
  • Open the C# class file Form1.cs in the tutorial project using Visual Studio 2022.
  • Change the linear barcode format to BarcodeType.EAN13.


Print EAN-13 Barcode with Add On Symbol in RDLC Reports

EAN-13 with 2-Digit Add On

To create and print an EAN-13 barcode with a 2 digit add on in an RDLC report, follow the instructions below.
  • Open the C# class file Form1.cs in the tutorial project using Visual Studio 2022.
  • Change the barcode format property Type to BarcodeType.EAN13_2.
  • Set the add on data value (a 2 digit string) in the SupData property.


EAN-13 with 5-Digit Add On

To print an EAN-13 barcode with a 5 digit add on in an RDLC report, follow steps similar to those for the 2 digit add on.
  • Open the C# class file Form1.cs in the tutorial project using Visual Studio 2022.
  • Change the barcode format property Type to BarcodeType.EAN13_5.
  • Set the add on data value (a 5 digit string) in the SupData property.



Print EAN-13 Barcode with Customized Text Label in RDLC Reports

The GS1 standard recommends printing EAN-13 text using the OCR B font. If the OCR B font is installed on the system, the following C# code can be used to apply the EAN-13 text font style in an RDLC report.
  • Open the C# class file Form1.cs using Visual Studio 2022.
  • Set the new font style in the TextFont property.



More Options to Customize EAN-13 Barcode in RDLC Reports



Show or Hide EAN-13 Quiet Zone Indicator

EAN-13 barcodes may include a quiet zone indicator at the end of the barcode text label. By default, the RDLC EAN-13 Barcode Generator library prints this indicator. It can be hidden in the RDLC report.
  • Open the C# class file Form1.cs using Visual Studio 2022.
  • Set the ShowQuietZoneIndicator property to false to hide the EAN-13 quiet zone indicator.



Configure EAN-13 Lead and Trail Digit Spaces

The spacing around the first and last digits of the EAN-13 barcode can be adjusted.
  • Open the C# class file Form1.cs using Visual Studio 2022.
  • Use the following properties:
    • UPCEANLeadDigitSpace: The space between the first digit and the start character bar. Default value is 0.
    • UPCEANTrailDigitSpace: The space between the stop character bar and the quiet zone indicator. Default value is 0.



Summary

The core workflow for generating EAN-13 barcodes in an RDLC Local Report is as follows:
  • Initialize a Linear barcode object with the barcode type set to EAN13, EAN13_2, or EAN13_5 as required.
  • Configure the barcode data (and add on data if applicable) for the RDLC report.
  • Optionally customize the text label font, quiet zone indicator visibility, and digit spacing.
  • Generate the barcode byte stream.
  • Bind the byte stream to an RDLC Image report item.
  • Render the report through the ReportViewer Control (ASP.NET / Windows Forms).
Key configurations for RDLC report include:
  • Selection of the appropriate barcode type (standard EAN-13 or with 2 digit / 5 digit add on).
  • Use of OCR B font for the text label as recommended by GS1 standards.
  • Proper spacing for lead and trail digits to maintain scannability.
These settings must align with the properties of the RDLC Image report item to ensure accurate rendering. The same integration patterns apply when using Crystal Reports for .NET, where image items in report templates can similarly bind to dynamically generated EAN-13 barcode images, and dimension and font specifications must match the report layout requirements.

Client RDLC Reports Barcode Generator SDK Supported Symbologies
Linear (1D) Barcodes:
Matrix(2D) Barcodes:
.NET RDLC Reports Barcode DLL Creates Linear Barcodes: Code 39, Code 128, EAN-13, EAN 128/GS1 128, UPC-A.
.NET RDLC Reports Barcode DLL Creates 2D Barcodes: Data Matrix, PDF 417, QR Code.



Related Developer Guide: How to Generate Barcode Images

How to generate barcodes in RDLC Reports for ASP.NET & .NET WinForms projects