How to display and print PDF417 barcode in RDLC reports in ASP.NET or Windows Forms applications
Avapose.Barcode Generator for RDLC
  • Reliable PDF417 barcode generator component for .NET applications
  • Compatible with .NET Framework 2.0, 3.0, 3.5, 4.0
  • Create and print quality PDF417 barcodes in client report definition (rdlc) files
PDF417 Creation in Local Reports
  • Print PDF-417 in Client Report Definition (.rdlc) Files
  • Insert PDF-417 barcode generation features into local reports
  • Implement reliable & mature PDF-417 generation in RDLC reports
  • Allow to symbol sizing, rotating, and coloring for EAN-13 barcode image
  • Capable to customize the account of columns and rows in one symbol
  • Compatible with ISO / IEC 15438 (2nd edition 2006-06-01)
  • Easy to install with Xcopy deployment
  • Provide royalty free developer license
PDF-417 Barcode Generator Control for RDLC local report is offered by Avapose to make PDF-417 in Client RDLC reports. The generator is a .NET component that was developed 100% in managed code in C#. The generator is specified for PDF-417 barcode generation and the generated PDF-417 could be customized.
PDF-417 Barcode Generator Control for RDLC supports:
  • RDLC Reports(runtime support)
  • Windows Forms Application (design-time and runtime support)
  • Class Library (runtime support)
  • Console Application (runtime support)
  • Windows Service (runtime support)
PDF-417 Barcode Generator for RDLC - PDF-417 Information
PDF-417 is defined as a stacked linear barcode sometime, but it is actually more close to the definition of a matrix (2D) barcode. The term PDF is short for Portable Data File; the 417 signifies that each pattern in the code is 17 units long and consists of four bars and spaces.
PDF-417 Barcode Generator for RDLC encodes:
  • 128 ASCII characters
  • Extended ASCII (ASCII characters 128-255, in accordance with ISO 8859-1)
PDF-417 Barcode Generator for RDLC - PDF-417 Generation

Environment Requirement

Before generating PDF-417 in .NET, you need to install:
  • Windows 7, Windows Vista, or Windows XP
  • .NET 2.0, 3.0 or later version
  • Microsoft Visual Studio 2005/2008/2010
  • Avapose.Barcode for RDLC

Creating a RDLC Report in .NET

  1. Creating a RDLC Report in .NET
  2. Open your Visual Studio and create a new Windows Forms;
  3. Create a new DataSet, name the dataset "AdventureWorks.xsd", and add it to the form;
  4. Select "Pointer", then drag &drop "TableAdapter" to your created Dataset;
  5. Create a new connection or use an existing connection to SQL Server AdventureWorks Sample Database;
  6. Input "SELECT ProductID, Name FROM Production.vProducrAndDescription WHERE (CultureID =N’en’) as SQL statements;"

Inserting Dataset and Table

  1. Right-click "vProductAndDescription" on the DataSet to create a new column in the DataTable, and name the column as "Barcode";
  2. Activate the Properties Window, and manually input "System.Byte[]" to the data type of the column;
  3. Switch to the Solution Explorer, and create a new report named "Report1.rdlc";
  4. Activate the "Toolbox", then insert a Table to the report;

Adding Fields

  1. Add three columns in the DataSet to the report table detail section, and drag an image item to the last column "Barcode";
  2. Set image item property "Source" to "Database";
  3. Set image item property "MIMEType"to "image/jpeg";
  4. Set image item property "Value" to "=Fields!Barcode.Value";

Integrating PDF-417 Generator into RDLC Report

  1. Select "Form1.cs[Design], and drag "ReportViewer" to Form1;
  2. Choose your report, and bind data collection;
  3. Copy the C# or VB .NET sample code into the method Form1_Load;
  4. Switch to the Solution Explorer, and add the generator DLL to project reference;
  5. Use "Avapose.matrixbarcode" namespace;
  6. Run the Windows Forms.

C# code

private void Form1_Load(object sender, EventArgs e)
// load data to the data table this.vProductAndDescriptionTableAdapter.Fill
// create a Matrix barcode object
Matrix barcode = new Matrix();
// set barcode type
barcode.MatrixBarcode = MatrixBarcode.PDF417;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
barcode.Data = row.ProductID.ToString();
// set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Jpeg;
row.Barcode = barcode.drawBarcodeAsBytes();

VB code

Private Sub Form1_Load(ByVal sender 
As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code
loads data into the 'AdventureWorks.vProductAndDescription' table.
You can move, or remove it, as needed.
Dim barcode As New Matrix()
barcode.MatrixBarcode = MatrixBarcode.PDF417
Dim row As AdventureWorks.vProductAndDescriptionRow
For Each row In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
barcode.Data = row.ProductID.ToString()
' set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Png
row.Barcode = barcode.drawBarcodeAsBytes()
End Sub
Related PDF417 Barcode Integration & Generation Information
The following PDF417 barcode integration and creation information links relate to this product that may be of interest to you:
Testimonial for RDLC Barcode Generator
We bought your product Barcode Generator for RDLC reports a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.