QR Code Image Sample - pqScan.com
ASP.NET PDF417 Creator Web Forms Control Encoding PDF-417 Barcode Image in ASP.NET Web forms Online Demo Download Trial Purchase Now
.NET Winforms

How to Generate PDF417 in ASP.NET Web Server?

back to home  >  .NET Barcode Generator SDK  >  Generate Barcodes in ASP.NET  >  Generate PDF417 in ASP.NET

ASP.NET PDF417 Creator is one of the barcode generation functions in pqScan Barcode Creator for ASP.NET. In this tutorial, you can find three ways to generate PDF 417 in ASP.NET web applications.

Generating PDF417 and painting it on web pages by dragging & dropping ASP.NET Barcode Creator Web Control

To print PDF417 image in web page with pqScan Barcode Creator WebForms control, follow these steps:

  1. Unzip the downloaded Trial package to development computer.
  2. Add Barcode Creator Web Control to the Visual studio Toolbox.
    • In the ASP.NET application, select View - Toolbox to display the Toolbox.
    • Right click on the General pane and select Choose Items...
    • In the dialog box Choose Toolbox Items, push the Browse button and navigate to the "PQScan.BarcodeCreator.dll" file.
    • Ensure the checkbox of pqScan Barcode Creator Webforms Control "BarcodeWebControl" is checked.
  3. In web form design mode, drag the BarcodeWebControl item from toolbox onto the web form.
  4. Copy "BarcodeWebHandler.ashx" file in to your ASP.NET web site.
  5. Run the web application to view the PDF417 generated.

Making and drawing PDF417 on web page or html page in IIS

  1. Publish your ASP.NET web site to IIS.
  2. Copy "BarcodeWebHandler.ashx" file from downloaded barcode generator package to your IIS.
  3. Copy "PQScan.BarcodeCreator.dll" from downloaded barcode generator package to your IIS bin folder.
  4. Create an empty html, and inset an image tag like: <img src="http://localhost:port/BarcodeWebHandler.ashx?BarType=PDF417&Data=123456789&Width=300&Height=100&PDF417Compact=False "/> .
  5. Viewing html page on web browser, you will see the PDF417 barcode created on the page.

Note: When you use barcode web control to encode PDF417 barcode image, please make sure the "BarcodeWebHandler.ashx" file is copied to the folder where the web page you wanted to add barcodes, otherwise the PDF-417 image will not appear.

Creating and encoding PDF417 barcode in ASPX forms class

Before starting generating PDF417 in web pages, reference the "PQScan.BarcodeCreator.dll" to your ASP.NET project. Then copy the following C# code to your web page in page load method. You will find creating PDF 417 in web page is so easy and fast.

using System;
using System.Web;
using System.Web.UI;
using PQScan.BarcodeCreator;

namespace PDF417GeneratorInWeb
    public partial class WebForm1 : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            Barcode pdf417 = new Barcode();

            pdf417.Data = "pqScan123456789";
            pdf417.BarType = BarCodeType.PDF417;
            pdf417.Width = 300;
            pdf417.Height = 200;
            pdf417.PDF417Compact = false;


generate pdf417 in asp.net

.NET Barcode Creator QR Code Creator in ASP.NET Data Matrix Creator in ASP.NET Aztec Creator in ASP.NET EAN 13 Creator in ASP.NET EAN 8 Creator in ASP.NET UPC A Creator in ASP.NET Code 128 Creator in ASP.NET Code 39 Creator in ASP.NET