Hello I have search creating the** PDF417 barcode** in** ASP.NET WEB APPLICATION** through c# code and found the SharpPDF417 in NUGET and this works well for windows application. But I want to create such barcode in WebApplication.

Tried through sharPDF417 and just failed in that so I had again search and found the link due to which I have tried in by application as

Code side as

        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Web;
        using System.Web.UI;
        using System.Web.UI.WebControls;
        using BarcodeLib.Barcode;
        using System.Drawing;
        using System.IO;

        public partial class _Default : System.Web.UI.Page

            protected void Page_Load(object sender, EventArgs e)
            {
             PDF417 PDF417 = new PDF417();
             PDF417.Data = "45454";

             PDF417.UOM = UnitOfMeasure.CM;
             PDF417.BackgroundColor = System.Drawing.Color.Black;
             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 = ...;// NOt knowing what to write
             PDF417.drawBarcode(graphics);

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

             // Create PDF417 barcode and output to Stream object
             Stream stream = ...;// NOt knowing what to write
             PDF417.drawBarcode(stream);
            }
        }    

**
Design side as **

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="BarcodeLib.Barcode.ASP.NET" Namespace="BarcodeLib.Barcode.ASP.NET" TagPrefix="cc1" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head runat="server"> 
    <title></title> 
    </head> 
    <body> 
    <form id="form1" runat="server"> 
    <div> 
    <cc1:PDF417ASPNET ID="PDF417" runat="server" Height="150" Width="150" /> 
    </div> 
    </form> 
    </body> 
    </html>

Not familiar with BarcodeLib, but I do have experiense with an easy-to-use Free Barcode API -
http://freebarcode.codeplex.com/ which supports to generate and read PDF417 barcode as well as many othere types in Web Service. If you try to work with this component, I could definitely be of help.

This article has been dead for over six months. Start a new discussion instead.