BizCode Barcode Generator for ASP.NET
The most professional barcode solutions for Microsoft ASP.NET
Quick Overviews
  • Barcode creating class library
  • Support ASP.NET IDEs & IIS
  • Easy to use & integrate
  • Dynamic barcodes support
  • High-usability controls provided
How to Encode PDF-417 Data in ASP.NET
BusinessRefinery.com ASP.NET Barcode PDF-417 Generator is one part of ASP.NET Barcode Generator, which is a mature barcode DLL to generate, create PDF-417 and other 20+ linear & 2D barcodes in ASP.NET Web forms and Internet Information Service.
ASP.NET Barcode PDF-417 Generator creates scannable PDF-417 barcodes configuring to its ISO speciation - ISO / IEC 15438 (2nd edition 2006-06-01). BusinessRefinery.com provides a complete developer guide for PDF-417 Data Encoding in ASP.NET using .NET using Barcode Generator for ASP.NET; other developer guides please see:
PDF-417 Data Related Properties

Data Mode

Barcode Generator for ASP.NET provides DataMode class for users, if they want to encode different data for PDF-417 with different data mode.

5 PDF-417 data modes:
  • Auto: this component will determine the best data mode for you
  • Text: encodes all printable ASCII characters
  • Byte: encodes 8-bit values according to ISO/IEC 8859-1
  • Numeric: encodes 10 Arabic digits 0-9
  • Customer: encodes data according to the customer

Code

Barcode Generator for ASP.NET provides Code class for users, if they want to manipulate PDF-417 barcode length.

ProcessTilde

Barcode Generator for ASP.NET provides ProcessTilde class for users, if they want to encode special character for PDF-417 using "~".
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • Programming for reader initialisation: ~rp.
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)

Error Correction Level

Barcode Generator for ASP.NET provides ECL class for users, if they want to create PDF-417 with 9 different levels of error corrections: level 0 to level 8.
Customize PDF-417 Barcode Data in ASP.NET & IIS
Be sure that you have installed those following programs onto your computers:
  • Microsoft .NET Framework 2.0/3.0/4.0
  • Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
  • Microsoft Internet Information Service (IIS)
  • Barcode Generator for ASP.NET installed
Encode PDF-417 Barcode Data in ASP.NET Web Forms Using BarcodeControl
  1. Add ASP.NE Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WebLinearBarcode control into the Forms;
  3. Run the website and you will see a barcode image generated;
  4. Go to Address bar and change your URL with following one: http://localhost/br_barcode/pdf417.aspx?code=0123456789&date-mode=0&ecl=5;
  5. Then a PDF-417 occurs.
Encode PDF-417 Barcode Data in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

PDF417 barcode = new PDF417();

// Select different data mode for PDF-417 data encoding
Barcode.DataMode = PDF417DataMode.Text;

// Modify PDF-417 data length
barcode.Code = "0123456789";

// Select different ECL for PDF-417
barcode.ECL = PDF417ECL.LEVEL_2;

barcode.drawBarcode2ImageFile("c:/pdf-417-vb-net.gif");
Dim barcode As BusinessRefinery.Barcode.PDF417 = 
New BusinessRefinery.Barcode.PDF417()

' Select different data mode for PDF-417 data encoding
barcode.DataMode = PDF417DataMode.Auto

' Modify PDF-417 data length
barcode.Code = "0123456789"

' Select different ECL for PDF-417
barcode.ECL = PDF417ECL.LEVEL_2
barcode.drawBarcode2ImageFile("c:/pdf-417-vb-net.gif")
Encode PDF-417 Barcode Data in Internet Information Service (IIS)
  1. Download Barcode Generator for ASP.NET and unzip;
  2. Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
  3. Restart IIS, navigate to http://localhost/br_barcode/pdf417.aspx?code=0123456789&date-mode=0&ecl=5.