.NET EAN 128 Barcode Generator
How to generate, print EAN 128, GS1-128 barcode labels in .net, c#, vb.net, asp.net
Free C#, vb.net example source code to create, make, print EAN 128, GS1 128 barcode labels in asp.net, crystal reports.
- 100% compatible with the latest GS1 specification to ensure high readability
- Integrate with .NET Framework 2.0/3.5 & greater and MS Visual Studio 2005/2008/2010
- Easy-to-use GS1-128/ EAN-128 barcode generation SDK in ASP.NET web sites, WinForms, and more .NET projects
- Allows customization of EAN-128 image width, height, resolution, orientation, color, etc
- Provide detailed tutorials, covering EAN-128 creation, data encoding, and size setting in C#/VB.NET
- Programmatically encode and print EAN 128 graphics with Jpeg, Gif, Png, Tiff and Bmp image formats
- Support thermal printer to allow accurate EAN-128 barcode image output even on low-resolution printers
KA.Barcode Generator for .NET Suite Summary
This Barcode Generator for .NET Suite SDK allows high-quality EAN-128 and other linear/ bi-dimensional barcode symbologies to be generated in .NET projects, including ASP.NET web forms, Windows applications, C#, VB.NET class, .NET Reports and .NET console applications.
gs1 barcode parsing c#,
barcode scanner code in vb.net,
rdlc qr code,
generate qr code in c#.net,
print barcode labels in c#,
qr code c# asp.net
EAN-128 Barcode Introduction
EAN-128 (also known as: EAN-128, UCC-128, USS-128, UCC.EAN-128, and GTIN-128) is developed to provide a worldwide format and standard for exchanging common data between companies. It is a variable-length linear barcode with high density.
EAN-128 Encodable Character Set
- 0-9
- A-Z
- a-z
- Special characters: space $ % + - . /
Download EAN-128 Barcode Control for .NET Suite
This KA.Barcode for .NET Suite is used by many developers to generate EAN-128 barcode iamges in various .NET applications. Please download and unzip the trial package. The trial version can not be used for any commercial application due to a "KA Barcode" watermark incuded in the generated barcode image. It contains the following items:
- KeepAutomation.Barcode.Crystal.dll
- KeepAutomation.Barcode.RDLC.dll
- KeepAutomation.Barcode.SSRS2005.dll
- KeepAutomation.Barcode.SSRS2005CRI.dll
- KeepAutomation.Barcode.SSRS2008.dll
- KeepAutomation.Barcode.SSRS2008CRI.dll
- KeepAutomation.Barcode.Web.dll
- KeepAutomation.Barcode.Windows.dll
How to Create EAN-128 Barcode Using C# or VB.NET Class
- Add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to your project reference.
- Copy C# or VB sample code below to create EAN-128 barcode image.
C# Sample code
BarCode ean128 = new BarCode(); ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128; ean128.CodeToEncode = "(00)0128"; ean128.generateBarcodeToImageFile("c://ean128-csharp.png"); VB Sample code
Dim ean128 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128 ean128.CodeToEncode = "(00)0128" ean128.generateBarcodeToImageFile("c:/ean128-vbnet.png") How to Generate EAN-128 Barcode in ASP.NET Project
- First of all, you need to open your Visual Studio and create a new ASP.NET project.
- Then, you may copy "barcode.aspx" and "barcode.aspx.cs" in "barcode" folder to your project folder.
- Next, you should add "KeepAutomation.Barcode.Web.dll" to your project reference.
- What's more, you need to drag and drop "BarCodeControl" in Toolbox to the aspx page to generate the EAN-128 barcode image.
- Finally, choose EAN128 barcode type in the Properties panel and debug to see the created EAN-128 barcode image.
We offer a guide for you to generate EAN-128 barcode image in IIS.
- Unzip the downloaded trial package and copy "barcode" folder in it to your IIS web application folder.
- Establish a new virtual directory (named as "barcode").
- Restart your IIS and navigate to "http://YourDomain:port/barcode/barcode.aspx?code-to-encode=(00)0128&symbology=11".
- To insert barcodes in html or aspx pages, refer to:
<img src="http://YourDomain:port/barcode/barcode.aspx?code-to-encode=(00)0128&symbology=11"/> - Simply customize your generated EAN-128 barcode image through the above URL.
How to Insert EAN-128 Barcode in .NET WinForms
- Unzip the downloaded evaluation package of .NET EAN-128 barcode generator online.
- Add KeepAutomation.Barcode.Windows.dll in the unzipped package to the Toolbox.
- Drag and drop the BarCodeControl from the Toolbox into the form.
- Choose "EAN128" as "Symbology" in Properties window.
- View the generated EAN-128 barcode image and change its other properties through the Properties window.
How to Add EAN-128 Barcode in .NET Reports
EAN-128 Barcode Image Generation Tutorial in Crystal Reports
EAN-128 Barcode Image Generation Tutorial in RDLC Reports
EAN-128 Barcode Image Generation Tutorial in Reporting Services
GS1-128 Property Settings
|
Class Attribute
|
HTTP Attribute
|
Default Value
|
Note
|
|
Basic
|
|
Symbology
|
symbology
|
Code128Auto
|
Barcode symoblogy type
|
|
CodeToEncode
|
code-to-encode
|
"128"
|
Barcode value to encode.
|
|
ChecksumEnabled
|
checksum-enabled
|
false
|
It is not applied here.
|
|
ImageFormat
|
image-format
|
ImageFormat.Png
|
Barcode encoded image format.
|
|
Barcode Size
|
|
AutoSizeAdjust
|
auto-size-adjust
|
false
|
If true, barcode X, Y module will be auto-adjusted.
|
|
BarcodeUnit
|
barcode-unit
|
BarcodeUnit.Pixel
|
Unit of measure for all size related settings. 0: pixel; 1: inch; 2: cm.
|
|
X
|
x
|
1
|
Barcode module width (narrow bar).
|
|
Y
|
y
|
50
|
Linear barcode bar height / 2D barcode module height.
|
|
LeftMargin
|
left-margin
|
0
|
Barcode image left margin.
|
|
RightMargin
|
right-margin
|
0
|
Barcode image right margin.
|
|
TopMargin
|
top-margin
|
0
|
Barcode image top margin.
|
|
BottomMargin
|
bottom-margin
|
0
|
Barcode image bottom margin.
|
|
DPI
|
dpi
|
72
|
Barcode image resolution in dpi.
|
|
Orientation
|
orientation
|
Orientation.Degree0
|
Barcode rotation angle.
|
|
BarCodeWidth
|
barcode-width
|
0
|
Whole barcode width.
|
|
BarCodeHeight
|
barcode-height
|
0
|
Whole barcode height.
|
|
Barcode Text Style
|
|
DisplayText
|
display-text
|
true
|
Set to true, displaying barcode value text, otherwise do not display.
|
|
DisplayChecksum
|
displace-checksum
|
true
|
Set to true, displaying barcode checksum digit, otherwise do not display.
|
|
TextFont
|
text-font
|
new Font(" Arial", 10 f, FontStyle.Regular)
|
Barcode text font style.
|
|
TextMargin
|
text-margin
|
6
|
Margin between barcode and text.
|
|
GS1-128 Specific Settings
|
|
FNC1
|
fnc1
|
FNC1.None
|
Apply to encode GS1 compatible Code 128.
|
|
TildeEnabled
|
tilde-enabled
|
false
|
Set to true, specifying special characters in Code 128 / EAN-128 data.
|
Generate GS1-128 in .NET Applications with C#
This .NET barcode encoder supports creating high-quality EAN-128 barcodes in .NET applications using C# class library. Here is a complete generation guide for you with detailed C# sample code.
Copy the sample code to your barcoding project and you will get the generated EAN-128 barcodes! You can also reset the generated
EAN-128 barcode parameters.
C# Sample code
BarCode ean128 = new BarCode(); ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128;
// Input valid EAN 128 encoding data: All ASCII characters, including 0-9, A-Z, a-z, and special characters. ean128.CodeToEncode = "(01)225";
//Apply checksum for EAN 128 barcode. ean128.ChecksumEnabled = true; // Display checksum in the EAN 128 barcode text ean128.DisplayChecksum = true;
// EAN 128 unit of measure, Pixel, Cm and Inch supported. ean128.BarcodeUnit = BarcodeUnit.Pixel; // EAN 128 image resolution in DPI. ean128.DPI = 72;
// EAN 128 image formats in Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc. ean128.ImageFormat = ImageFormat.Png;
// Set EAN 128 image size
// EAN 128 bar module width (X dimention) ean128.X = 3; // EAN 128 bar module height (Y dimention) ean128.Y = 60; // Image left margin size, a 10X is automatically added to go with specifications. ean128.LeftMargin = 0; // Image right margin size, a 10X is automatically added to go with specifications. ean128.RightMargin = 0; // EAN 128 image top margin size ean128.TopMargin = 0; // EAN 128 image bottom margin size ean128.BottomMargin = 0;
// Orientation, 90, 180, 270 degrees supported ean128.Orientation = KeepAutomation.Barcode.Orientation.Degree0;
// Set EAN 128 human readable text style
// Display human readable text ean128.DisplayText = true; ean128.TextFont = new Font("Arial", 10f, FontStyle.Regular); // Space between barcode and text ean128.TextMargin = 6;
// Generate EAN 128 barcodes in BMP image format ean128.generateBarcodeToImageFile("C://barcode-ean128-csharp.bmp");
/* Create EAN 128 barcodes in Stream object ean128.generateBarcodeToStream(".NET System.IO.Stream Object");
Draw & Print EAN 128 barcodes to Graphics object ean128.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");
Generate EAN 128 barcodes & write to byte[] byte[] barcodeInBytes = ean128.generateBarcodeToByteArray();
Generate EAN 128 barcodes & encode to System.Drawing.Bitmap object Bitmap barcodeInBitmap = ean128.generateBarcodeToBitmap(); */
Generate EAN-128 Using VB.NET Sample Code
VB Sample code
Dim ean128 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128 ean128.CodeToEncode = "(12)ean128"
'Apply checksum for EAN128 barcode. ean128.ChecksumEnabled = True 'Display checksum in EAN128 barcode text ean128.DisplayChecksum = True
'EAN128 unit of measure, Pixel, Cm and Inch supported. ean128.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel 'EAN128 image resolution in DPI. ean128.DPI = 72
'Set EAN128 image size 'EAN128 bar module width (X dimention) ean128.X = 1 'EAN128 bar module height (Y dimention) ean128.Y = 60 'Image left margin size, a 10X is automatically added according to specification. ean128.LeftMargin = 0 'Image right margin size, a 10X is automatically added according to specification. ean128.RightMargin = 0 'EAN128 image top margin size' ean128.TopMargin = 0 'EAN128 image bottom margin size' ean128.BottomMargin = 0
'Orientation, 90, 180, 270 degrees supported' EAN128 image bottom margin ean128.Orientation = KeepAutomation.Barcode.Orientation.Degree0 'EAN128 image formats in Png, Gif, Jpeg/Jpg, Tiff, Bmp, etc. ean128.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif 'Set generated EAN128 human readable text style ean128.DisplayText = True ean128.TextFont = New Drawing.Font("Arial", 10.0F, Drawing.FontStyle.Regular) 'Space between barcode and text ean128.TextMargin = 6
ean128.generateBarcodeToImageFile("C://ean128-vb-net.gif")
|
Free Trial DownloadC#/VB EAN 128For Web EAN 128For Windows EAN 128For Reports EAN 128How To Start Using C#Using VB.NETData Matrix for .NETPDF417 for .NETQR Code for .NETmoreCodabar for .NETCode 39 for .NETCode 128 for .NETEAN-8 for .NETEAN-13 for .NETEAN 128 for .NET Intelligent Mail for .NETInterleaved 2 of 5 for .NETISBN for .NETITF-14 for .NETRM4SCC for .NETUPC-A for .NETUPC-E for .NETmore
|