How to Generate UPC-A in RDLC Application

Generate Code UPC-A Barcode in RDLC Reports with C# and VB Sample Codes
  • Completely integrated with Visual C#.NET and VB.NET
  • Add UPC-A barcode creation features into RDLC Reports
  • Print high-quality UPC-A barcodes in RDLC application
  • Automatically calculate the mandatory checksum digit for UPC-A
  • Print possible two or five digits supplement barcode symbol
  • Easy to adjust bar and space of UPC-A barcode in RDLC Reports
  • Offer royalty-free license for UPC-A Barcode DLL in RDLC Reports
UPC-A Barcode DLL for RDLC Reports Overview
KA.Barcode for RDLC Reports is a compact and robust DLL for creating UPC-A barcode image into RDLC Reports. You can easily customize the UPC-A barcode image in report with C#.NET and VB.NET. The size of each bar or space could be scaled. The color and orientation of the symbol is also customizable.
UPC-A Barcode Description
UPC-A is used with consumer products especially in North America. People in these areas can easily find UPC-A barcode on almost every consumer good in stores as well as on books, magazines and newspapers. It encodes 11 digits (o to 9) only, excluding the check digit.
UPC-A Barcode DLL for RDLC Reports Download
UPC-A Barcode SDK for RDLC Reports Evaluation is widely used for barcode generation in RDLC Reports. Users are free to download it. The unzipped evaluation package of this barcode SDK contains:
  • KeepAutomation.Barcode.RDLC.dll
  • User Manual & Order Page
  • End User License Agreement
This evaluation version of UPC-A Barcode DLL for RDLC Reports can not be used commercial applications because barcode image created with it may contain a "KA Barcode" watermark.
UPC-A Generation in RDLC Reports with WinForms Project
Generating UPC-A barcode image with this UPC-A Barcode DLL for RDLC Reports evaluation version is simple. Just follow detailed steps below.
  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 upca = new BarCode();
// set barcode type
upca.Symbology = KeepAutomation.Barcode.Symbology.UPCA;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
upca.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
upca.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

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

row.Barcode = upca.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
If you want to generate UPC-A barcode image in web applications with this RDLC Reports barcode dll, refer to this barcode generation tutorial.
UPC-A Barcode Properties
Free Trial DownloadRDLC UPC-AUPC-A PropertiesData Matrix for RDLCPDF417 for RDLCQR Code for RDLCmoreCodabar for RDLCCode 39 for RDLCCode 128 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-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.