KA.Barcode for .NET Suite
How to Generate Codabar in C# Application
Complete source code to generate, print Codabar images using C#.NET Barcode Generator.
  • Written in Visual C#.NET with full integration into .NET Framework 2.0 and greater
  • Easily stream high-quality Codabar images in ASP.NET webform/website and Microsoft IIS
  • Paint, draw dynamic Codabar 1D bar codes in windows applications, Crystal Reports, SSRS, etc
  • Programmatically generate Codabar with C#, VB.NET class library
  • Simple to create, make Codabar in stream object, graphics object
  • Create, make Codabar barcodes in Png, Gif, Tiff, Bmp, Jpeg image formats
  • Customize various Codabar properties in the setting panel
  • Thermal printer support to print high-quality Codbar images for all scanners
KA.Barcode Generator for .NET Suite allows developers to easily generate accurate Codabar linear images and other matrix barcodes in Visual C#.NET class library, ASP.NET webform, windows applications, Crystal Reports, SSRS, etc. KeepAutomation provides flexible setting options and detailed tutorials for Codabar generation in C#.
Visual Studio by using free C#.NET Barcode Library DLL with use-friendly interface. This product is complied completely in best C# programming code,...
NET. How to Generate Barcodes in RDLC Using C#.NET. ....
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...
more>
Codabar Barcode Introduction
Codabar is a common linear barcode also named as CodaBar, Code 2 of 7, USS Codabar, 2 of 7 Code.
  • Codabar Encodable Character Set: Numeric digits 0-9, and special characters - & ; / , +
  • Codabar Barcode Data Length: Variable
Codabar Barcode Generation in Visual C#.NET

How to Install Codabar Barcode Encoder Suite into .NET Projects

  1. 1.
  2. 2.
    Add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to reference
  3. 3.
    Add "KeepAutomation.Barcode.Windows" or "KeepAutomation.Barcode.Web" to Visual Studio .NET ToolBox
Easy integration into .NET applications to generate QR Code in C#.NET class library; Dynamic barcode components, such as .NET barcode ....
How to Generate QR Code Image in VB.NET Projects. VB.NET source code to generate, print QR Code in different image formats using .NET Barcode...
more>

How to Generate Codabar in .NET Applications with C# Demo Code

using KeepAutomation.Barcode.Bean;

//Create BarCode object in C#
BarCode codabar= new BarCode();

//Set barcode symbology type to Codabar
codabar.Symbology = KeepAutomation.Barcode.Symbology. Codabar;

//Set Codabar encoding code value. Valid data: numeric digits 0-9, dash, dollar, slash, point, plus. Length: variable.
codabar.CodeToEncode = "6663";

//Codabar Start & Stop Char
codabar.CodabarStartChar = CodabarStartStopChar.A;
codabar.CodabarStopChar = CodabarStartStopChar.A;

//Set Codabar image size

//Unit of measure, pixel, cm and inch supported.
codabar.BarcodeUnit = BarcodeUnit.Pixel;
//Codabar image resolution in dpi
codabar.DPI = 72;

//Codabar bar module width (X dimention)
codabar.X = 3;
//Codabar bar module height (Y dimention)
codabar.Y = 60;
//Image left margin size, minimum value is 10X.
codabar.LeftMargin = 0;
//Image right margin size, minimum value is 10X.
codabar.RightMargin = 0;
//Codabar image top margin size
codabar.TopMargin = 0;
//Codabar image bottom margin size
codabar.BottomMargin = 0;
//Orientation, 90, 180, 270 degrees supported.
codabar.Orientation = Orientation.Degree0;

//Set Codabar human readable text style

//Display human readable text
codabar.DisplayText = true;
codabar.TextFont = new Font("Arial", 10f, FontStyle.Regular);
//Space between barcode and text
codabar.TextMargin = 6;

//Generate codabar barcodes in image GIF format
codabar.generateBarcodeToImageFile("barcode-codabar-csharp.gif");

//Create Codabar barcodes in Stream object
codabar.generateBarcodeToStream(".NET System.IO.Stream Object");

//Draw & Print Codabar barcodes to Graphics object
codabar.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

//Generate Codabar barcodes & write to byte[]
byte[] barcodeInBytes = codabar.generateBarcodeToByteArray();

//Generate Codabar barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = codabar.generateBarcodeToBitmap();

Other image formats including PNG, BMP and JPG are also available to suit your needs.