How to make PDF417 in Crystal Reports for .NET using PDF417 .NET SDK for Crystal Reports
Avapose.Barcode for Crystal Report
  • Reliable PDF417 barcode creator library & DLL for Crystal Report .NET
  • VB.NET, C#, Managed C++ and Borland Delphi for .NET 2.0/3.0/4.0
  • Easily print PDF417 in Crystal Reports in ASP.NET and .NET WinForms applications
Barcode Crystal Report > Barcode in Crystal Report > 2D > .NET PDF417 in Crystal Report
Crystal Reports PDF417 Creator Component
  • Professional and mature Barcode Generator for Crystal Report
  • Generate high quality PDF-417 images in Windows Forms and Web Forms for Crystal Report
  • Completely run in C#.NET and compatible with VB.NET, Managed C++ for .NET, etc
  • Provide managed code written in Visual C# with strong-named, digitally signed and time-stamped DLL
  • Display PDF-417 in high-quality Gif, Tiff, Bmp, Png or Jpeg image
  • Compatible with all languages and locales including Double Byte versions of Windows
  • PDF-417 parameters are pre-configured for easy generation
  • Royalty-free and perpetual developer license provided
.NET PDF-417 Creation SDK & DLL for Crystal Report is a robust and reliable .NET assembly that easily adds PDF-417 features into Crystal Report with high quality. Barcode parameters are pre-configured as defaults for easy generation, but these parameters are flexible to be changed to make desired PDF-417 barcode image.
Barcode Generation for Crystal Report for .NET - PDF-417 Information
PDF-417, which stands for Portable Data File 417, is a stacked linear barcode symbology that is primarily used in transport, identification, cards and inventory management. PDF-417 can encode large amounts of text and data securely and inexpensively. With the implementation of error correction level, the symbol can withstand some damage without causing loss of data.
.NET PDF-417 generator control for Crystal Report encodes:
  • Standard ASCII values 0-127
  • Extended ASCII values 128-225
Barcode Generation for Crystal Report for .NET - PDF-417 Generation

Requirements:

To insert PDF-417 into Crystal Report, you should install:
  • Windows XP, Windows Vista, Windows 7, etc
  • .NET Framework 2.0, 3.0, and advanced version
  • Microsoft Visual Studio 2005, 2008, 2010
  • Crystal Report for .NET (run-time support)
  • Avapose.Barcode for Crystal Report

Generate PDF-417 Barcode in Crystal Report

  1. In the demo file, there are a "BarcodeDemoData.mdb" that including "ID", "CustomerId", and "CustomerName", a "CustomerDataSet.xsd" to define the three columns and an extra column named "Barcode";
  2. Open your Visual Studio; create a new .NET project with "Crystal Reports Application" as template;
  3. Create a new report with Crystal Report. In the "Data" form, expand "Create New Connection", double click "ADO.NET (XML)" and select "File Path" as "C:\Demo\CustomerDataSet.xsd" in your downloaded sample dataset package;
  4. You are back at the "Data" form. Double click "table", then click "Next". In the "Fields" form, double click or drag and drop "ID", "CustomerID", "CustomerName" to "Fields to Display" and click "Finish";
  5. In "CrystalReport1.rpt", drag and drop the "Barcode" in the "Field Explorer" to report Section 3. And add "Avapose.linearbarcode.winforms.dll" to your project reference in "Solution Explorer";
  6. Open your "Form1.cs", copy the following samples accordingly and debug.

C# code

private void Form1_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.mdb");
aConnection.Open();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select * from Customer"
, aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);
//add a new column named "Barcode" to the DataSet, the new column data type is
byte[]

ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));
Matrix Barcode = new Matrix();
Barcode. MatrixBarcode = Matrix Barcode. PDF-417;
foreach (DataRow dr in ds.Tables[0].Rows)
{
Barcode.BarcodeData = (int)dr["CustomerId"] + "";
byte[] imageData = Barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
}
CrystalReport1 rpt = new CrystalReport1();
rpt.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = rpt;
aConnection.Close();

VB code

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles MyBase.Load

Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:/Demo/BarcodeDemoData.mdb"
)
aConnection.Open()
Dim dataAdapter As New OleDbDataAdapter("select * from Customer", aConnection)
Dim ds As New DataSet()
dataAdapter.Fill(ds)
'add a new column named "Barcode" to the DataSet, the new column data type is
byte[]

ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))
Dim Barcode As new Matrix()
Barcode. MatrixBarcode = Matrix Barcode. PDF-417
For Each dr As DataRow In ds.Tables(0).Rows
Barcode.BarcodeData = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = Barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
Next
Dim rpt As New CrystalReport1()
rpt.SetDataSource(ds)
Me.CrystalReportViewer1.ReportSource = rpt
aConnection.Close()
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:
Avapose.Barcode for Crystal Report Testimonial
We bought your Barcode Generator for Crystal Report a few weeks ago, and it works pretty well
Carios Louis, Eureka Software Ltd,UK