Barcode in VB.NET > Linear > EAN 128 FAQ
![]() VB.NET Barcode Control Library SDK - EAN 128 Barcode FAQ in Visual Basic.NET
GS1-128(EAN/UCC-128) barcode generator control DLL for Visual Basic.NET supports creating and drawing GS1-128 and other 40+ linear and 2D barcodes images in VB.NET projects using VB.NET coding with sample code. VB.NET barcode generator library is completely developed in .NET environments and can be used in any language environments to create barcode images. Free demo of barcode dll is provided with sample code.
This article walkthroughs EAN-128 barcode basic settings and special settings in VB.NET applications using Visual Basic.NET class method from the following aspects:
![]() VB.NET Barcode Generator Library DLL - EAN 128 Data Encoding Linear EAN-128 Barcode Valid Data in Barcode Control SDK
Code 128 VB.NET Sample Code: EAN128.Symbol = Terrek.Barcode.BarcodeSymbol.EAN128 EAN128.BarcodeData = "(8100)71234(21)215545" EAN 128 Human-Readable Text
Human-readable text of EAN-128 is able to be removed and replace with other special characters such as company logo, fax number, telex number, etc. Developers may change this option via DisplayData. Type is bool.The default is true.
The text font of EAN 128 is changeable. The font used to display text in barcode image. Type is TextStyle, default is New Font("Arial", 9.0F, FontStyle.Regular). The color & space of text font are adjustable.
EAN 128 VB.NET Sample Code: EAN128.DisplayData = True EAN128.TextColor = Color.Blue EAN128.TextSpace = 6 EAN128.TextStyle = New Font("Arial", 9.0F, FontStyle.Regular) ![]() VB.NET Barcode Generator Library DLL - EAN 128 Special Settings EAN-128 Application Identifier
GS1-128/EAN-128 is a barcode within GS1 system using Application Identifiers (AIs) in the data string. There are two methods to encode AI in EAN 128: one is using parentheses directly around AI data, the other is to apply Tilde function and uses "~ai" plus number to encode AI data. For example: ~ai2 = 2 digits, ~ai3 = 3 digits, ~ai4 = 4 digits.
EAN 128 VB.NET Sample Code: EAN128.BarcodeData = "(8100)71234(21)215545"
EAN 128 VB.NET Sample Code: EAN128.Tilde = True EAN128.BarcodeData = "ai4810071234ai221215545" ![]() VB.NET Barcode Generator Library DLL - EAN 128 Size Adjustment EAN 128 UOM (Unit of Measure)
Set property MeasuringUnit for properties BarWidth, BarHeight, MarginL and MarginT. Valid values are PIXEL, CM and INCH. Default is PIXEL. With this UOM setting, users can control the whole barcode size to a unique type.
EAN 128 VB.NET Sample Code: EAN128.MeasuringUnit = Terrek.Barcode.MeasuringUnit.INCH EAN 128 Module Size
EAN 128 bar size refers to the BarWidth and BarHeight of a module bar. When developers need to create barcodes with a fixed bar width, these two properties need to be implemented. With the ImageResize applied, image width & image height are changed according to the customization of bar width and bar height. The type is float.
EAN 128 VB.NET Sample Code: EAN128.BarWidth = 1 EAN128.BarHeight = 80 EAN 128 Image Size
EAN 128 image size refers to the whole barcode image size including image width and image height. If the module size is unknown, you can set the ImageHeight and ImageWidth directly with the applying of ImageResize to true.
EAN 128 VB.NET Sample Code: barcode.ImageWidth = 120 barcode.ImageHeight = 120 EAN 128 Margin Size
Increasing the width of margins around the symbol is one way to enhance the readability of the EAN 128 barcode image. The barcode control library SDK set the left, right, top, and bottom margins separately with float values. The default value is 0.
EAN 128 VB.NET Sample Code: barcode.MarginL = 4 barcode.MarginR = 4 barcode.MarginT = 4 barcode.MarginB = 4 ![]() VB.NET Barcode Generator Library DLL - EAN 128 Image Customization EAN 128 Image Format
The EAN 128 barcode images generated in Visual Basic.NET project using VB.NET coding can be displayed as Gif, Tiff, Bmp, Png, Jpeg and other image formats. Programmers may change the format using BarcodeFormat property.
EAN 128 VB.NET Sample Code: EAN128.BarcodeFormat = System.Drawing.Imaging.ImageFormat.Gif EAN128.SaveAsImage("C:\EAN128.gif") EAN 128 Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by EAN 128 generator control SDK could be managed with DPI and compatible with all printers. Type is int. Default is 96 dpi. Programmers can set resolution with DotsPerInch property.
EAN 128 VB.NET Sample Code: EAN128.DotsPerInch = 270 EAN 128 Image Placements
The created Code 128 is flexible to change the placement in VB.NET projects with source. By customizing the BarAlign properly, the image is presented left, right or center in documents or projects. By changing Rotation property, the image can be rotated to 90, 180, and 270 degrees. The default is 0 degree.
EAN 128 VB.NET Sample Code: EAN128.Rotation = Terrek.Barcode.Rotation.Degree180 EAN128.BarAlign = Terrek.Barcode.BarAlign.Left EAN 128 Image Color
The displayed EAN-128 image is flexible to be changed color of foreground and background by manipulating ImageColor and BarColor respectively.
EAN 128 VB.NET Sample Code: EAN128.ImageColor = Color.Blue EAN128.BarColor = Color.Black ![]() VB.NET Barcode Generator Library DLL - EAN 128 Development Environments
Using Visual Basic.NET class method to create EAN-128 is easy and can be based on multiple VB.NET programs. These following platforms are ready for generating EAN-128 barcode images with barcode control component DLL for VB.NET. Tutorial to create & print barcode images using VB.NET.
|
Copyright © Terrek.com 2014.All rights reserved.
Code 39 .NET | Code 128 ASP.NET | PDF417 C#.NET | Data Matrix VB.NET | QRCode Java | UPC-A Crystal | Linear Barcodes SSRS | 2D Barcodes RDLC |