Insert Code 128 Barcode in RDLC Reports

Code 128 Barcode Creation in RDLC Reports with C# and VB Programming
  • Fully compatible with Visual Studio 2005/2008/2010
  • Support Microsoft .NET Framework 2.0, 3.0, etc
  • Entirely support Microsoft SQL Server 2005 and greater
  • Create 20+ linear & 2D barcodes (including Code 128) in RDLC Reports
  • Provide flexible Code 128 size setting to get customized barcode image
  • Easy to adjust Code 128 barcode properties with C# or VB class
Code 128 Barcode Library for RDLC Reports Overview
With this Code 128 Barcode Library for RDLC Reports, developers are able to generate high-quality Code 128 barcode image in RDLC Reports. A detailed tutorial with C# and VB sample code is provided online to realize easy barcode creation.
Code 128 Barcode Description
Code 128 provides excellent density for all-numeric data and good density for alphanumeric data. It is often selected over Code 39 in new applications because of its density and because it offers a larger scope of character selection.
Code 128 Barcode Library for RDLC Reports Download
You are entitled to download Code 128 Barcode Library for RDLC Reports Trial without charge. After the trial package is downloaded and unzipped, you will find:
  • KeepAutomation.Barcode.RDLC.dll
  • User Manual & Order Page
  • End User License Agreement
As a "KA Barcode" watermark may be visible on Code 128 barcode image created with the above trial version, it only can be used for demo or testing purposes. To apply to commercial applications, an applicable license should be bought.
Code 128 Creation in RDLC Reports with WinForms Project
  1. Open your Visual Studio and create a new DataSet with the name "AdventureWorks.xsd".
  2. Select "Pointer" in the "Toolbox" and drag "TableAdapter" to the new "DataSet".
  3. Create or select a connection to SQL Server AdvantureWorks Sample Database.
  4. Input "SELECT ProductID, Name FROM Production.vProductDescription WHERE (CultureID = N'en') as SQL Statements.
  5. Establish a new column by right clicking "vProductAndDescription" on the dataset, then name the column.
  6. Change the data type to "System.Byte[]".
  7. Switch to "Solution Explorer" and add a new "Report" item.
  8. Create a new "Report" item and insert a table to the report.
  9. Add three columns in the dataset to the report table details section.
  10. Drag and drop "Image" item to the last column and name it "Barcode".
  11. Go to "Properties" window and change "Source", "MIMEType", "Value" to "Database", "image/jpeg", "=Fields!Barcode.Value" respectively.
  12. Then select "Form1.cs[Design]", drag "ReportViewer" to Form1, and bind the data collection.
  13. Add reference "KeepAutomation.Barcode.RDLC.dll" to your project.
  14. Compile the following C# & VB sample codes into the method Form1_Load.
  15. Use "KeepAutomation.Barcode.RDLC" namespace and run your project.
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 barcode = new BarCode();
// set barcode type
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
barcode.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

row.Barcode = barcode.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 barcode As New BarCode()
' set barcode type
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto
' draw barcodes for each data row
For Each row As AdventureWorks.vProductAndDescriptionRow In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
barcode.CodeToEncode = row.ProductID.ToString()
' set drawing barcode image format
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

row.Barcode = barcode.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
With this Code 128 Creation Guide in RDLC Reports with WinForms Project, users can complete barcode creation with this barcode generator easily.
Code 128 Barcode Properties
To get user-defined Code 128 barcode image in RDLC Reports, read properties of Code128 barcode carefully.
Free Trial DownloadRDLC Code 128Code 128 PropertiesData Matrix for RDLCPDF417 for RDLCQR Code for RDLCmoreCodabar for RDLCCode 39 for RDLCEAN-8 for RDLCEAN-13 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 for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. 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# merge PDF files, Split PDF in C#, 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.