How to Generate PDF-417 in RDLC Application

Insert PDF-417 Barcode Image into RDLC Reports
  • Completely integrated with Visual C#.NET and VB.NET
  • Add 2D barcode generation capability to your local report
  • Generate advanced PDF-417 barcode image in RDLC Reports
  • Add auto data mode that automatically selects data mode for specified PDF-417 barcode data
  • Easy to adjust the size of modules bars and margins around PDF-417 barcode symbol
  • Increase the margins around symbol to enhance PDF-417 barcode readability
  • Support PDF-417 barcode image rotation and alignment in RDLC application
  • Provide royalty-free and permanent license for RDLC Reports Barcode Control
RDLC Reports PDF-417 Barcode Generator Introduction
KA.Barcode for RDLC is a powerful control library for RDLC Reports development that supports PDF-417 barcode creation. This PDF-417 barcode generator draws high quality graphics object in RDLC Reports in Windows applications and ASP.NET projects. You can easily get user-defined barcode image using C#.NET or VB.NET. The parameters of generated PDF-417 barcode image are highly customizable.
PDF-417 Symbology Introduction
PDF-417 is a stacked 2D barcode used in a variety of industrial applications, including primarily transport, identification cards and inventory management. PDF is short for Portable Data File. The term of 417 suggests that each pattern of a PDF-417 is 17 units long and consists of four bars and spaces.
Download RDLC Reports PDF-417 Barcode Control
RDLC Reports PDF-417 Barcode Control Evaluation can be downloaded free of charge online. This evaluation version consists of:
  • KeepAutomation.Barcode.RDLC.dll
  • End User License Agreement
  • User Manual & Order Page
Developers are allowed to use this evaluation version for demo purposes because PDF-417 barcode image generated with this evaluation version will include a "KA Barcode" watermark.
Add PDF-417 in WinForms Using RDLC Barcode Control
  1. Create a new DataSet with the name "AdventureWorks.xsd".
  2. Switch to the "Toolbox", select "Pointer", 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. Create 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 "KeepAutomation.Barcode.RDLC.dll" to project reference.
  14. Copy 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 pdf417 = new BarCode();
// set barcode type
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417;
pdf417.X = 2;
pdf417.Y = 2;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
pdf417.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

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

row.Barcode = pdf417.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
How to generate PDF-417 barcode image in Web Forms using RDLC barcode control? You can find the answer in this barcode generation guide.
PDF-417 Barcode Properties
Free Trial DownloadRDLC PDF417PDF417 PropertiesData Matrix 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-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 ASP.NET html5 document viewer, 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.