KA.Barcode Generator for ASP.NET
How to Generate Code 39 Image in ASP.NET Projects
Complete source code to generate, print Code 39 in different image formats using Barcode for ASP.NET
  • Compatible with Microsoft Visual Studio and other .NET development environments.
  • Integrate Code 39 Barcode Generator Control in ASP.NET Web Application webform/ websites/ web pages
  • Linear bar code Code 39 creation & barcoding functionality in Microsoft Internet Information with Services (IIS) URL
  • Java EAN-8, Excel Intelligent Mail, EAN 128 C#, Code 128 .NET WinForms & Excel Codabar can be created as well
  • Simple to create & draw 1D Code 39 Extended barcode for all ASCII in ASP.NET webform/website
  • Efficient, Accurate 1D Code 39 generating & printing in C#.NET, VB.NET, ASP.NET & IIS
  • Flexible options to adjust Code 39 bar alignment, image resolution
  • In accordance with all major web browsers, Internet Explorer, Mozilla, Chrome, Safari included
  • Dynamic barcode components, such as .NET barcode & ASP.NET barcode, are provided
  • Compatible with Code 39 ISO / IEC 16388 (2nd edition) barcode specification
Code 39 Barcode Generator API for ASP.NET is a unique and robust barcoding maker component software with best quality for Code 39, Code 39 Extension Barcodes generation in your ASP.NET web applications with C#, Visual Basic .NET programming. This page explains how to set Code 39 barcode image in ASP.NET, IIS, and provides other tutorials of Code 39 data encoding and size setting with sample codings for developers:
Code 39 Image Setting in ASP.NET with C#, VB.NET Class Library

Install Code 39 Barcode Maker Component in 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 generation syntax onto you ASP.NET project to convert string into Code 39:
using KeepAutomation.Barcode.Bean;
BarCode barcode= new BarCode();
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code39;
barcode.CodeToEncode = "Code 39";
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

barcode.Symbology= KeepAutomation.Barcode.Symbology.Code39
barcode.CodeToEncode = "Code 39"

Change Code 39 Barcode Image Resolution in ASP.NET

KA.Barcode Generator for ASP.NET is used to display high quality barcode images in ASP.NET Web Applications. The default resolution of Code 39 generated by KA.Barcode Generator for ASP.NET is 72 DPI. DPI is short for Dots per Inch.

Adjust Code 39 Barcode Horizontal Alignment inside the Image in ASP.NET

Besides image resolution, the placement of barcode horizontal alignment inside the image makes Code 39 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
For ASP.NET is a fully integrated SDK library to generate, display scannable high-quality QR Code images in ASP.NET webform / website / web pages...
QR Code Overview in .NET WinForms Library. QR Code, known as Denso Barcode, QRCode, Quick Response Code, JIS X 0510, and ISO/IEC18004, is a 2D...

Print & Save Code 39 in Png and Other Image Formats in ASP.NET

KA.Barcode Generator for ASP.NET support creating Code 39 and save to local files in graphics, like Png, Jpeg/Jpg, Gif, Bmp/bitmap, Tiff and other image formats. To print Code 39 barcodes in specified image formats, users can simply follow the C#, VB.NET sample code below:
barcode.ImageFormat = ImageFormat.Png;
barcode.ImageFormat = ImageFormat.Png

Rotate Code 39 Barcode Images in ASP.NET

If users want to change position of the generated Code 39 barcode image, just follow the C#, VB.NET sample code. KA.Barcode Generator for ASP.NET supports rotating barcode images in four angles: 0 degree, 90 degrees, 180 degrees and 270 degrees.
barcode. Orientation = KeepAutomation.Barcode.Orientation.Degree0;
barcode. Orientation = KeepAutomation.Barcode.Orientation.Degree0
Code 39 Image Setting with drag & drop BarcodeControl into ASP.NET Webform
  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 "Code39" or "Code39Ex"
  6. 6.
    Set "DPI" to "76" and "BarAlignment" to "Center"
  7. 7.
    Then a Code 39 with customized image occurs
Code 39 Image Setting in Internet Information Service (IIS) through URL
  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=4&code-to-encode=0123456789&dpi=72&bar-alignment=2&fore-color=gray&back-color=darkred"
  5. 5.
    A Code 39 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=4&code-to-encode=0123456789&dpi=72&bar-alignment=2&fore-color=gray&back-color=darkred" />