BizCode Barcode Generator for .NET Ultimate
The most mature & flexible barcode SDK for Microsoft .NET Framework
Quick Overviews
  • Mature barcode creating SDK
  • Support every .NET IDEs
  • Support C#, VB.NET, etc.
  • Dynamic barcodes support
  • For all printers
How to Generate Code 128 in .NET Library
Code 128 (a.k.a. ANSI/AIM 128, ANSI/AIM Code 128) is a very high-density barcode symbology. (A special version of it called GS1-128 is used extensively world-wide in shipping and packaging industries.) It is used for alphanumeric or numeric-only barcodes.
Code 128 .NET Generator is designed to generate and create Code 128 barcode in .NET projects easily and simply. It is compatible with C#, VB.NET, managed C++ and Delphi for .NET. It can be easily and completely developed and run in C# and VB.NET.
.NET Code 128 Generating SDK provides a set of options to optimize Code 128 barcode. Users are able to adjust the X dimension, wide to narrow ratio, barcode height and width, etc. by setting barcode size option. With Lower ASCII, encoding of functions, such as tab or return, is easy and simple. Tilde Functions are provided for encoding of returns, tabs and other functions.
Code 128 for .NET Ultimate Features
Encodable CharactersSupport to encode:
- Standard ASCII characters 0-127 (default: ISO/IEC 646)
- Extended ASCII characters 128-255 (default: ISO/IEC 8859-1)
ISO barcode SpecificationCode 128 barcode generation in accordance with the latest ISO barcode specification - ISO / IEC 15417 (2nd edition 2007-06-01)
Programming LanguageCompletely run in Visual C#, VB.NET, Managed C++ and Borland Delphi for .NET
Image & SizeMultiple barcode setting options to customize Code 128 barcode image and size, including module width, image width, color, rotation, resolution, text, etc.
Text OptionsDisplay human-readable code text under Code 128 symbols with customized font style
Mature & SecureMature Code 128 barcode generating component used world-wide with strong name signatures and signed DLLs provided
Code 128 for .NET Ultimate Requirements
Windows OS
- Microsoft Windows 7
- Windows Server 2008
- Windows Vista
- Windows Server 2003
- Windows XP
Development Environments
- .NET 2.0/3.0/4.0
- C#, Visual Basic, Managed C++ and Borland Delphi.NET
- Visual Studio 2005/2008/2010
- .NET Windows Forms Application
- .NET Class and Console Applications
- ASP.NET Web Forms
- .NET SSRS and Crystal Report
Install Code 128 Generator for .NET Ultimate
  1. Download BizCode Generator for .NET Ultimate and unzip;
  2. Add reference: Add "BusinessRefinery.Barcode.Web.dll" or "BusinessRefinery.Barcode.Win.dll" to your project reference;
  3. Add to toolbox: To add Barcode Control to your .NET Winforms or ASP.NET Web Forms toolbox.
How to Drag & Drop Barcode Control into ASP.NET projects?
  1. Install ASP.NET Barcode Control;
  2. Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
  3. Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
  4. Drag and drop the WebLinearBarcode control into the Forms;
  5. Run the website and you will see a barcode image generated.
How to Drag & Drop Barcode Control into .NET Winforms projects?
  1. Install .NET Winforms Barcode Control;
  2. Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  3. Drag and drop the WinLinearBarcode control into the Forms;
  4. Run the website and you will see a barcode image generated.
How to Generate Code 128 in .NET with C#, VB.NET Class?
Copy those following code to your .NET project:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE128;
barcode.Code = "0123456789";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/code-128-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128
barcode.Code = "0123456789"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/code-128-vb-net.gif")

How to Create Your Own Code 128 in IIS?
  1. Download BizCode Generator for .NET Ultimate 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=7;
  4. Add an image tag <img> into the web page to create Code 128 barcode image in html or aspx pages, e.g.
    <img src=" http://localhost/br_barcode/linear.aspx?code=0123456789&symbology=7"/>.
How to Draw Code128 Barcodes to Image Files (GIF, JPEG, BMP, PNG, & TIFF)?
Copy those following code to your .NET project:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE128;
barcode.Code = "0123456789";
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/code-128-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128
barcode.Code = "0123456789"
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/code-128-vb-net.gif")
How to draw & print Code 128 barcodes to .NET objects like Graphics, Stream, Bitmap?
Copy those following code to your .NET project:
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
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