How to Generate EAN-13 in RDLC ReportsHow to Generate and Insert EAN-13 Barcode Image in Local Report RDLC
- Entirely support Microsoft .NET Framework 2.0, 3.0, 3.5 & 4.0
- Create RDLC Reports EAN-13 barcode in Visual Studio 2005/2008/2010
- Customize EAN-13 barcode image in RDLC Reports using C#.NET or VB.NET
- Rapidly export high-quality EAN-13 barcode image on PDF and html
- Print and save EAN-13 barcode image in various image formats
- Provide royalty-free developer license for RDLC Reports Barcode DLL
RDLC EAN-13 Barcode Creator Summary
RDLC EAN-13 Barcode Creator is a professional barcode component that is capable of adding high-quality EAN-13 barcode image in RDLC (Report Definition Language Client-Side) Reports. It is easy to adjust EAN-13 barcode properties via C#.NET and Visual Basic.NET in RDLC Reports.
EAN-13 Barcode Description
EAN-13 is used world-wide for marking retail goods. The symbol encodes 13 characters: the first two or three are country codes which identify the country in which the manufacturer is registered. The country codes are followed by 9 or 10 data digits and a single digit checksum. 2-digit and 5-digit supplemental barcodes may be added for a total of 14 or 17 data digits. Download RDLC EAN-13 Barcode Generator
- End User License Agreement
- User Manual & Order Page
- KeepAutomation.Barcode.RDLC.dll
Users are able to use this trial version of RDLC EAN-13 Barcode Creator for an unlimited period of time. However, our applicable license should be purchased for business applications as EAN-13 barcode image created with the trial version may include a "KA Barcode" watermark. How to Create EAN-13 in RDLC with WinForms Project
Here are specific steps for EAN-13 barcode generation in RDLC Reports with WinForms project. If you are not familiar with barcode creation in RDLC Reports, you may refer to them.
- Download and unzip the trial version of RDLC EAN-13 Barcode Generator.
- Create a new DataSet in your Visual Studio with the name "AdventureWorks.xsd".
- Select "Pointer" in the "Toolbox" and drag "TableAdapter" to the new "DataSet".
- Create or select a connection to SQL Server AdvantureWorks Sample Database.
- Input "SELECT ProductID, Name FROM Production.vProductDescription WHERE (CultureID = N'en') as SQL Statements.
- Establish a new column by right clicking "vProductAndDescription" on the dataset, then name the column.
- Change the data type to "System.Byte[]".
- Add a new "Report" item in "Solution Explorer".
- Create a new "Report" item and insert a table to the report.
- Add three columns in the dataset to the report table details section.
- Drag and drop "Image" item to the last column and name it "Barcode".
- Change "Source", "MIMEType", "Value" to "Database", "image/jpeg", "=Fields!Barcode.Value" respectively in "Properties" window.
- Then select "Form1.cs[Design]", drag "ReportViewer" to Form1, and bind the data collection.
- Add reference "KeepAutomation.Barcode.RDLC.dll" to your project.
- Copy C# & VB sample codes below into the method Form1_Load and use "KeepAutomation.Barcode.RDLC" namespace.
- Run your project to see the generated EAN-13 barcode image.
C# Sample code
private void Form1_Load(object sender, EventArgs e) { // load data to the data table this.vProductAndDescriptionTableAdapter.Fill this.vProductAndDescriptionTableAdapter.Fill(this.AdventureWorks.vProductAndDescription); // create a linear barcode object BarCode ean13 = new BarCode(); // set barcode type ean13.Symbology = KeepAutomation.Barcode.Symbology.EAN13; // draw barcodes for each data row foreach (AdventureWorks.vProductAndDescriptionRow row in this.AdventureWorks.vProductAndDescription.Rows) {// set barcode encoding data value ean13.CodeToEncode = row.ProductID.ToString(); // set drawing barcode image format ean13.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
row.Barcode = ean13.generateBarcodeToByteArray(); } this.reportViewer1.RefreshReport(); } VB Sample code
Private Sub Form1_Load(sender As Object, e As EventArgs) ' load data to the data table this.vProductAndDescriptionTableAdapter.Fill Me.vProductAndDescriptionTableAdapter.Fill(Me.AdventureWorks.vProductAndDescription) ' create a linear barcode object Dim ean13 As New BarCode() ' set barcode type ean13.Symbology = KeepAutomation.Barcode.Symbology.EAN13 ' draw barcodes for each data row For Each row As AdventureWorks.vProductAndDescriptionRow In Me.AdventureWorks.vProductAndDescription.Rows ' set barcode encoding data value ean13.CodeToEncode = row.ProductID.ToString() ' set drawing barcode image format ean13.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
row.Barcode = ean13.generateBarcodeToByteArray() Next Me.reportViewer1.RefreshReport() End Sub EAN-13 Barcode Properties |