Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > C# Barcode Generation Guide > C#.NET PDF-417 Generator SDK Tutorial, also creates 2D barcodes: QR Code, Data Matrix
Download Barcode for .NET Suite Trial

PDF-417 Barcode Library DLL for .NET in C# Class

How to Generate 2D Barcode Images in .NET with C# Programming
  • Completely built in managed C# .NET code, compatible with .NET Framework 2.0 and greater
  • Professional & mature PDF-417 C#.NET barcode generator library in use for more than 10 years
  • Generate & print PDF-417 barcodes images in C#.NET Class & console application
  • Create & draw PDF-417 barcodes in C# ASP.NET Website / webpage / webform & C# WinForms Project
  • Generate PDF-417 barcodes in Reporting Services & Crystal Reports & RDLC Reports
  • One-time purchase for royalty-free developer license for C#.NET barcode Library
C#.NET 2D PDF-417 Barcode Introduction
PDF417 is a 2D, high-density barcode. It is the combination of several rows and columns. PDF-417 is able to encode numbers, data byte and texts. As it can store data securely and inexpensively, PDF-417 has been widely used today.
How to Generate PDF-417 Images in C#.NET Class?

Installation

  1. By adding reference, you could integrate Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your project.
  2. Through choosing items, you could integrate Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your Visual Studio Toolbox.

C# Codes Programming

The following are free sample c# codes.
     PDF417 PDF417 = new PDF417();
PDF417.Data = "45454";

PDF417.UOM = UnitOfMeasure.CM;
PDF417.BackgroundColor = System.Drawing.Color.White;
PDF417.ModuleColor = System.Drawing.Color.Black;
PDF417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
PDF417.ImageWidth = 10;

// More PDF417 barcode settings here, like image color, font etc.

// Save barcode image into your system
PDF417.drawBarcode("c:/pdf417.jpeg");

// Create PDF417 barcode & output to byte array
byte[] barcodeInBytes = PDF417.drawBarcodeAsBytes();

// Create and save PDF417 barcode to Graphics object
Graphics graphics = ...;
PDF417.drawBarcode(graphics);

// Create PDF417 barcode and output to HttpResponse object
HttpResponse response = ...;
PDF417.drawBarcode(response);

// Create PDF417 barcode and output to Stream object
Stream stream = ...;
PDF417.drawBarcode(stream);
Above PDF417 sample codes are written in Visual C# 2005
How to Create PDF-417 Barcodes in C# ASP.NET Web Applications?
With this C# QR Code generator, you can stream QR Code barcode images in ASP.NET using C#.NET in two ways.
  1. Add Barcodelib.Barcode.ASP.NET.dll to your web project.
  2. Or add Barcodelib.Barcode.ASP.NET.dll to the Toolbox.
  3. Find the folder barcode in the trial package and copy files "pdf417.aspx", "pdf417.aspx.cs" to your web project folder.
  4. Drag PDF417ASPNET from the Toolbox and drop it on your web project. Then you will see a PDF417 barcode image.
  5. Adjust barcode parameters in the Properties Window or generate it with above free C# source code.
  6. Run the project and you will see the generated PDF 417 barcode on your aspx pages.
How to Generate PDF417 Barcodes in C# Windows Forms Projects?
  1. Add BarcodeLib.Barcode.WinForms.dll to your Windows Forms project.
  2. Or Add BarcodeLib.Barcode.WinForms.dll to the Toolbox.
  3. Drag PDF417WinForm to your windows form and you will see a PDF417 barcode image. Click the image and adjust its settings in the Properties Window or create a PDF417 barcode with above free C# sample code.
Barcode Images Supported by C# PDF-417 Generator SDK
C# 1D Barcode Generation:
C# 2D Barcode Generation:
Supported Visual C# Linear Barcode Images: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, EAN-8, EAN-13, Interleaved 2 of 5, ITF-14 (UPC Shipping Container Symbol), Code 128, EAN 128/GS1 128, MSI Plessey, Intelligent Mail, Planet, Postnet, RM4SCC (British Royal Mail), UPC-A, UPC-E.
Supported Visual C# 2D Barcode Images: Data Matrix, PDF 417, QR Code.