Guide to Generate PDF-417 in Crystal Reports

Add Dynamic PDF-417 Images into Crystal Reports with Flexible Barcode Image Settings
  • Comprehensive and easy-to-use PDF-417 barcode SDK for .NET 2.0 and greater
  • Completely written in the managed C#.NET and compatible with VB.NET
  • Generate scannable and printable PDF-417 barcode image in Crystal Reports
  • Automatically validate the value of PDF-417 for easy and quick generation
  • Render high-quality PDF-417 image in Gif, Tiff, Bmp, Png and Jpeg formats
  • Easy to encode tilde functions, such as returns, tabs, GS, RS, etc
  • Easy to redistribute for no activation key or registration code is required
PDF-417 Barcode Library for Crystal Reports Introduction
KA.Barcode Generator for Crystal Reports is a comprehensive and robust .NET solution which allows you to produce barcodes in Crystal Reports displayed in Gif, Tiff, Bmp, Png and Jpeg formats. This barcode generator can be easily integrated into existing and new reports just by adding it to project reference and then copying the C# or VB.NET sample code we provide online.
PDF-417 Barcode Symbology Introduction
PDF-417 is also known as Portable Data File 417 and PDF417 Truncated. It is a 2D stacked barcode symbology capable of encoding a large amount of data. PDF-417 Error Correction Level allows the symbol to withstand some damage without the loss of data.
PDF-417 Encodable Characters
  • Standard ASCII values: 0-127
  • Extended ASCII values: 128-225
Download PDF-417 Barcode Library for Crystal Reports
Download evaluation version of PDF-417 Barcode Library for Crystal Reports and use it to create advanced barcode image in Crystal Reports. The unzipped evaluation package of this barcode library includes:
  • KACrystalData.mdb
  • ProductDataSet.xsd
  • KeepAutomation.Barcode.Crystal.dll
  • End User License Agreement
  • User Manual & Order Page
For a "KA Barcode" watermark may be included in PDF-417 barcode image created with the above Crystal Reports Barcode Library evaluation version, the evaluation version can only be used in non-business applications.
How to Insert PDF-417 in ASP.NET Using Crystal Reports DLL
  1. Open your Visual Studio and create a new web project with "ASP.NET Crystal Reports Web Site" as template.
  2. Create a new report "Using the Report Wizard", choose "Standard", and click "OK".
  3. In "Data" form, double click "Create New Connection", and expand "ADO.NET".
  4. Add "ProductDataSet.xsd" file in "ADO.NET" form, and click "Finish" button.
  5. In "Data" form, add table "Product" and click "Next". In "Fields" form, add all three columns in the table "Product" and click "Finish".
  6. In CrystalReport1.rpt, add field "Barcode" to the report Section 3.
  7. Add "KeepAutomation.Barcode.Crystal.dll" to your project reference.
  8. Write the following C#.NET or VB.NET demo code.
  9. Run the project to view created PDF-417 barcode image.
C# Sample code
     protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb");
aConnection.Open();

OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select * from Product",aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);

//Add the Barcode column to the DataSet
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));

BarCode pdf417 = new BarCode();
//Barcode settings
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417;
pdf417.X = 6;
pdf417.Y = 6;
pdf417.LeftMargin = 24;
pdf417.RightMargin = 24;
pdf417.TopMargin = 24;
pdf417.BottomMargin = 24;
pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

foreach (DataRow dr in ds.Tables[0].Rows)
{
pdf417.CodeToEncode = (int)dr["ProductId"] + "";
byte[] imageData = pdf417.generateBarcodeToByteArray();
dr["Barcode"] = imageData;
}
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"));
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[0]);
CrystalReportSource1.DataBind();

}
VB Sample code
     Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb")
aConnection.Open()

Dim dataAdapter As New OleDbDataAdapter("select * from Product", aConnection)
Dim ds As New DataSet()
dataAdapter.Fill(ds)

'Add the Barcode column to the DataSet
ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))

Dim pdf417 As New BarCode()
'Barcode settings
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417
pdf417.X = 6
pdf417.Y = 6
pdf417.LeftMargin = 24
pdf417.RightMargin = 24
pdf417.TopMargin = 24
pdf417.BottomMargin = 24
pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

For Each dr As DataRow In ds.Tables(0).Rows
pdf417.CodeToEncode = CInt(dr("ProductId")) & ""
Dim imageData As Byte() = pdf417.generateBarcodeToByteArray()
dr("Barcode") = imageData
Next
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"))
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
CrystalReportSource1.DataBind()

End Sub
PDF-417 Barcode Properties
Free Trial DownloadCrystal PDF417PDF417 PropertiesUsing C#Using VB.NETUsing ASP.NETUsing .NET WinformsData Matrix for Crystal ReportQR Code for Crystal ReportmoreCodabar for Crystal ReportCode 39 for Crystal ReportCode 128 for Crystal ReportEAN-8 for Crystal ReportEAN-13 for Crystal ReportEAN 128 for Crystal ReportIntelligent Mail for Crystal ReportInterleaved 2 of 5 for Crystal ReportISBN for Crystal ReportITF-14 for Crystal ReportRM4SCC for Crystal ReportUPC-A for Crystal ReportUPC-E for Crystal Reportmore
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.