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 Generate Code 39 images in ASP.NET
ASP.NET Code 39 Barcode Creating Component is one function of barcode generator for ASP.NET. It is a flexible and reliable .NET barcode generating component, compatible with Visual Studio and other .NET development environments.
ASP.NET Code 39 Barcode Creating DLL provides easy way for developers to generate and print Code 39 barcode in ASP.NET Web applications with little efforts. This is a sample tutorial for specifying Code 39 barcode image in ASP.NET others, please see:
Code 39 Image Related Properties

Start & Stop Characters

Barcode Generator for ASP.NET provides DisplayStartStopChar class for users, if they want to show asterisk (*) at the beginning and end of Code 39 barcodes.

Barcode Resolution

Barcode Generator for ASP.NET provides Resolution class for users, if they want to set the Code 39 barcode images resolution in DPI according to their custom settings.

Barcode Rotation

Barcode Generator for ASP.NET provides Rotate class for users, if they want to rotate their Code 39 barcode images into any angle of 0, 90, 180 and 270 degrees.

Image Formats

Barcode Generator for ASP.NET provides ImageFormat class for users to save the barcode images to most of the popular image formats, such as Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc.

ASP.NET Graphic Objects

Barcode Generator for ASP.NET provides DrawBarcode method for users, if they want to save Code 39 barcode images into ASP.NET Graphics, Stream and Bitmap objects.
Customize Code 39 Barcode Images 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)
  • BizCode Generator for ASP.NET installed
Customize Code 39 Barcode Images 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/linear.aspx?code=0123456789&symbology=4&display-start-stop-char=true&resolution=96&rotate=3;
  5. Then a Code 39 with customized image occurs.
Customize Code 39 Barcode Images in ASP.NET Using C#, VB.NET class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE39;
barcode.Code = "0123456789";

// Show start & stop character for Code 39 barcode
barcode.DisplayStartStopChar = true;

// Change Code 39 resolution in DPI
barcode.Resolution = 104;

// Rotate Code 39 barcode image
barcode.Rotate = Rotate.Rotate180;

// Save Code 39 in multiple image formats
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/code-39-csharp.gif");

// Save Code 39 barcode in ASP.NET objects
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE39
barcode.Code = "0123456789"

' Show start & stop character for Code 39 barcode
barcode.DisplayStartStopChar = true

' Change Code 39 resolution in DPI
barcode.Resolution = 104

' Rotate Code 39 barcode image
barcode.Rotate = Rotate.Rotate180

' Save Code 39 in multiple image formats
barcode.Format = ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/code-39-vb-net.gif")

' Save Code 39 barcode in ASP.NET objects
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap
Customize Code 39 Barcode Images 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/linear.aspx?code=0123456789&symbology=4;
  4. Add an image tag <img> into the web page to create Code 39 barcode image in html or aspx pages, e.g.
    <img src="http://localhost/br_barcode/linear.aspx?code=0123456789&symbology=4& display-start-stop-char=true&resolution=96&rotate=3"/>.