How to Generate EAN-13 in RDLC Reports

How 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
It is free to download RDLC EAN-13 Barcode Generator Trial. Users can use this free trial version to generate EAN-13 barcode image in RDLC Reports. What included in the trial package are:
  • 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.
  1. Download and unzip the trial version of RDLC EAN-13 Barcode Generator.
  2. Create a new DataSet in your Visual Studio with the name "AdventureWorks.xsd".
  3. Select "Pointer" in the "Toolbox" and drag "TableAdapter" to the new "DataSet".
  4. Create or select a connection to SQL Server AdvantureWorks Sample Database.
  5. Input "SELECT ProductID, Name FROM Production.vProductDescription WHERE (CultureID = N'en') as SQL Statements.
  6. Establish a new column by right clicking "vProductAndDescription" on the dataset, then name the column.
  7. Change the data type to "System.Byte[]".
  8. Add a new "Report" item in "Solution Explorer".
  9. Create a new "Report" item and insert a table to the report.
  10. Add three columns in the dataset to the report table details section.
  11. Drag and drop "Image" item to the last column and name it "Barcode".
  12. Change "Source", "MIMEType", "Value" to "Database", "image/jpeg", "=Fields!Barcode.Value" respectively in "Properties" window.
  13. Then select "Form1.cs[Design]", drag "ReportViewer" to Form1, and bind the data collection.
  14. Add reference "KeepAutomation.Barcode.RDLC.dll" to your project.
  15. Copy C# & VB sample codes below into the method Form1_Load and use "KeepAutomation.Barcode.RDLC" namespace.
  16. 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
View more parameters of EAN-13 barcode here to customize your barcode image.
Free Trial DownloadRDLC EAN-13EAN-13 PropertiesData Matrix for RDLCPDF417 for RDLCQR Code for RDLCmoreCodabar for RDLCCode 39 for RDLCCode 128 for RDLCEAN-8 for RDLCEAN 128 for RDLCIntelligent Mail for RDLCInterleaved 2 of 5 for RDLCISBN for RDLCITF-14 for RDLCRM4SCC for RDLCUPC-A for RDLCUPC-E for RDLCmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.