KA.Barcode Generator for .NET Suite
How to Generate Code 128 Image in VB.NET Projects
VB.NET source code to generate, print Code 128 images in image formats using Barcode for .NET Control
  • Easily, completely implement Code 128 generating control within VB.NET IDEs
  • Create and draw multiple Code 128 1D barcodes in VB.NET Web and Window projects
  • Dynamic barcode components, such as .NET barcode & Excel barcode, are provided
  • Encode and output high print-quality 1D Code 128 barcodes in GIF, BMP, PNG, JPEG, TIFF image formats
  • Enable to control Code 128 barcode size, image resolution, rotation, and font style in ASP.NET Class
  • Generate, make Code128 with checksum digit automticall added as specified in standard
  • Compatible with Code 128 barcode specification in ISO / IEC 15417 (2nd edition 2007-06-01)
  • Powerful barcode component .NET WinForms barcode, Excel barcode, barcode ASP.NET developed for easy barcode creation
  • Reliable & reliable .NET barcode generator library to be used world-wilde
  • Provide complete unencrypted source code with purchase of .NET Code 128 barcode maker
With full integration into .NET Framework, KeepAumation barcode maker for .NET suite allows generation & barcoding of Code 128, and other linear & 2D bar code symbologies in VB.NET class, VB.NET Windows Forms and VB.NET ASP.NET web applications. Particularly, customers are allowed to control and set Code 128 barcode size, image style, and valid data on their VB.NET applications with our KA.Barcode Generator for .NET Suite.
Code 128 Image Setting in KA.Barcode Generator for .NET Suite

Installation of KA.Barcode Generator for .NET Suite

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET Code 128 barcode generating syntax onto you forms to produce a Coe 128:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code128Auto
barcode.CodeToEncode = "Code 128"
barcode.generateBarcodeToImageFile("C://barcode-code128-vbnet.gif")

Change Code 128 Barcode Image Resolution

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

Display Code 128 Human-readable Text

In some situations, users need to hide human-readable text under Code 128 barcode symbols. However, they just want to customize and display them. With KA.Barcode Generator for .NET Suite, users may display human-readable text with "DisplayText" enabled and customize them via "TextFont" and "TextMargin".
barcode.DisplayText = true
barcode.TextFont = new Font("Arial", 10f, FontStyle.Regular)
barcode.TextMargin = 6

Adjust Code 128 Barcode Image format

KA.Barcode Generator for ASP.NET supports most major image format, like GIF, TIFF, JPEG/JPG, BMP/Bitmap, PNG, to save Code 128 barcode image in your ASP.NET applications. User may change image format within "ImageFormat". The default is "Gif".
barcode.ImageForamt = ImageFormat.Gif

Rotate Code 128 Barcode Image

In case users want to rotate a generated Code 128 direction/position, KA.Barcode Generator for .NET Suite offers "Orientation" functionality to allow for Code 128 0 degree, 90 degrees, 180 degrees or 270 degrees image rotation. Please follow the VB.NET demo code below:
barcode. Orientation = KeepAutomation.Barcode.Orientation.Degree0