Generate Code 39 Barcode in RDLC Reports

Code 39 Barcode Creation in RDLC Reports with C# and VB Programming
  • Compatible with Microsoft .NET Framework 2.0, 3.0, 3.5 & 4.0
  • Fully consistent with Visual Studio 2005/2008/2010
  • Truely support Microsoft SQL Server 2005 and above
  • Create Code 39 and other 1D & 2D barcodes in RDLC Reports
  • Easy to adjust Code 39 barcode properties in RDLC Reports
  • Quickly export Code 39 barcode image on PDF and html
Code 39 Barcode SDK for RDLC Reports Introduction
Code 39 Barcode SDK for RDLC Reports is a mature barcode library for Code 39 and other 1D & 2D barcodes generation in RDLC Reports. It supports Microsoft .NET Framework 2.0, 3.0, 3.5 and 4.0. Developers can easily adjust Code 39 barcode properties through C# or VB.NET programming.
Code 39 Symbology Introduction
Code 39 is widely used in many industries and meets many government barcode encoding specifications, including the U.S. Department of Defense. Code 39 is defined in American National Standards Institute (ANSI) standard MH10.8M-1983 and is also known as USD-3 and 3 of 9.
Code 39 Barcode SDK for RDLC Reports Download
Users are free to download Code 39 Barcode SDK for RDLC Reports Trial. The following items will be visible in the downloaded and unzipped trial package.
  • KeepAutomation.Barcode.RDLC.dll
  • User Manual & Order Page
  • End User License Agreement
Please note that this trial version is not permitted to be used in commercial applications as a "KA Barcode" watermark may be visible on Code 39 barcode image created with it.
RDLC Code 39 Barcode Creation in .NET WinForms
  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 code39 = new BarCode();
// set barcode type
code39.Symbology = KeepAutomation.Barcode.Symbology.Code39;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
code39.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
code39.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

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

row.Barcode = code39.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
Code 39 Barcode Properties








Frequently Asked Questions

What purposes do Code 39 barcodes serve?

Code 39 barcode also known as Code 3 of 9 too, handles digits and letters and is most often used in inventory work, government agencies, the military, and electronics businesses.

How are Code 39 and Code 128 barcodes different?

Code 128 uses a mandatory checksum for data integrity, damage to it may not stop scanning. In contrast, Code 39 typically forgoes a checksum, so any damage to the barcode usually makes it unreadable.

What makes Code 39 and Code 93 barcodes different?

Code 93 is a revised version of Code 39, offering greater data capacity in a smaller symbol. This makes it a more space-efficient barcode solution.

Can lowercase letters be encoded in Code 39 barcodes?

Lowercase letters cannot be encoded in a standard Code 39 barcode, but the extended version is able to.

How small can a Code 39 barcode be?

code 39 has minimum size rules:
  • Narrow element width (X): The smallest bar width is set by the app's specifications.
  • Barcode height: At least 5.0mm, or 15% of the symbol's width (not including quiet zones) - whichever is greater.

What ratio do narrow and wide bars have in Code 39?

The valid ratio of narrow to wide bars in Code 39 is from 1:2 to 1:3.
















Free Trial DownloadRDLC Code 39Code 39 PropertiesData Matrix for RDLCPDF417 for RDLCQR Code for RDLCmoreCodabar 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-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.