How to Generate PDF-417 in RDLC ApplicationInsert 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
- 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
- Create a new DataSet with the name "AdventureWorks.xsd".
- Switch to the "Toolbox", select "Pointer", and drag "TableAdapter" to the new "DataSet".
- Create or select a connection to SQL Server AdvantureWorks Sample Database.
- Input "SELECT ProductID, Name FROM Production.vProductDescription WHERE (CultureID = N'en') as SQL Statements.
- Create a new column by right clicking "vProductAndDescription" on the dataset, then name the column.
- Change the data type to "System.Byte[]".
- Switch to "Solution Explorer" and add a new "Report" item.
- Create a new "Report" item and insert a table to the report.
- Add three columns in the dataset to the report table details section.
- Drag and drop "Image" item to the last column and name it "Barcode".
- Go to "Properties" window and change "Source", "MIMEType", "Value" to "Database", "image/jpeg", "=Fields!Barcode.Value" respectively.
- Then select "Form1.cs[Design]", drag "ReportViewer" to Form1, and bind the data collection.
- Add "KeepAutomation.Barcode.RDLC.dll" to project reference.
- Copy the following C# & VB sample codes into the method Form1_Load.
- 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 PDF-417 Barcode Properties |