KA.Barcode Generator for ASP.NET
How to Generate UPC-A Image in ASP.NET Projects
ASP.NET source code to generate, print UPC-A in different file formats using Barcode for ASP.NET Control
  • Simply integrate UPC-A creation features into ASP.NET Web application
  • C# ITF-14, Word UPC-E, Word Interleaved 2 of 5, Interleaved 2 of 5 ASP.NET and other linear & 2D barcode control provided
  • Working well with C#.NET, VB.NET, ASP.NET and Microsoft IIS
  • Create supplement image EAN-2 and EAN-5 for UPC-A 1D bar codes in ASP.NET webform/ website
  • Rotate and align symbol in the image to define symbol placement properly
  • Print and save UPC-A locally as gif, jpeg, png, tiff, and bitmap files with various image settings
  • Generating 1D UPC-A in stream object, in graphics object, and image formats
  • Insert linear and GS1 barcodes , such as Intelligent Mail Word, C# UPC-E, UPC-E .NET, ITF-14 .NET, in your applications
  • Accurate UPC-A barcode generation compatible with GS1 standard in ASP.NET web pages
With ASP.NET UPC-A Barcode Maker Software, a high-performance UPC-A creation and printing device, developers may easily generate, make linear UPC-A as well as UPC-A+2 and UPC-A+5 barcodes with add-on in ASP.NET webform/ websites. More information about UPC-A barcode related property settings, please see:
UPC-A Image Setting with C#, VB.NET Class in ASP.NETP.NET

Install UPC-A Barcode Maker Control into ASP.NET Projects

  1. 1.
  2. 2.
    Add reference: Add "KeepAutomation.Barcode.Web.dll" to your ASP.NET project reference
  3. 3.
    Add to toolbox: To add BarcodeControl to your ASP.NET toolbox
Copy those following C# or VB.NET barcode onto you forms to string a UPC-A in ASP.NET web page:
using KeepAutomation.Barcode.Bean;
BarCode barcode= new BarCode();
barcode.Symbology= KeepAutomation.Barcode.Symbology.UPCA;
barcode.CodeToEncode = "12345678901";
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

barcode.Symbology= KeepAutomation.Barcode.Symbology. UPCA
barcode.CodeToEncode = "12345678901"

Add Supplementary Barcode Image for UPC-A Barcode

KA.Barcode Generator for ASP.NET supports to add supplementary barcode image EAN-2 or EAN-5 for UPC-A barcodes. Users may add EAN-2 or EAN-5 barcodes with "Symbology" and "SupplementData" properties.
barcode.Symbology= KeepAutomation.Barcode.Symbology.UPCASup2;
barcode.SupplementCode = "13";
barcode.Symbology= KeepAutomation.Barcode.Symbology.UPCASup2
barcode.SupplementCode = "13"

Adjust UPC-A Barcode Horizontal Alignment inside the Image

Besides image resolution, the placement of barcode horizontal alignment inside the image makes UPC-A barcodes look different. Using KA.Barcode Generator for ASP.NET, you can easily change bar alignment with "BarAlignment" to "right", "center" or "left"; and the default is "Center".
barcode.BarAlignment = AlignmentHori.Center;
barcode.BarAlignment = AlignmentHori.Center

Adjust UPC-A Barcode Image Format

KA.Barcode Generator for ASP.NET supports most major image format, like GIF, TIFF, JPEG/JPG, BMP, PNG, to save UPC-A barcode image in your ASP.NET applications. User may change image format within "ImageFormat". The default is "Gif".
barcode.ImageFormat = ImageFormat.Gif;
barcode.ImageFormat = ImageFormat.Gif
UPC-A Image Setting with Drag & Drop BarcodeControl
  1. 1.
    In "Choose Toolbox Items" form, click button "Browse...", and select KeepAutomation.Barcode.Web.dll
  2. 2.
    Now you'll see BarCodeControl in your toolbox
  3. 3.
    Drag and drop the BarCodeControl into the Forms and a Codabar image is generated
  4. 4.
    Open your barcode setting panel
  5. 5.
    Choose "Symbology" to "UPCA"
  6. 6.
    Set "BarAlignment" to "Center", and Set "ImageFormat" to "Gif"
  7. 7.
    Then a UPC-A with customized image occurs
UPC-A Image Setting in Microsoft Internet Information Service (IIS)
  1. 1.

    Copy folder "barcode" in your download the trial package to your IIS web application folder
  2. 2.
    Create a virtual directory, named "barcode", and link to your just copied "barcode" folder
  3. 3.
    Restart IIS and now you have successfully installed the ASP.NET Barcode Generator web application
  4. 4.
    To test it, open your web browser, and navigate to "http://localhost/barcode/barcode.aspx?symbology=36&code-to-encode=01234567890&dpi=72&bar-alignment=2&image-format=gif"
  5. 5.
    A UPC-A barcode with numeric data will be displayed
  6. 6.
    If you want to barcode embed in HTML or ASP scripts as an image, insert the <IMG> tag: <img src="http://localhost/barcode/barcode.aspx?symbology=36&code-to-encode=01234567890&dpi=72&bar-alignment=2&image-format=gif"/>