GS1-128 C#.NET Integration Tutoria

Generate GS1 Compatible GS1-128 Using C#.NET

Barcode for C#
.NET Imaging Component
Home > Barcode in C# > Linear > EAN 128
Using Visual C#.NET, graphic GS1-128 barcode images could be in variety of .NET applcations. GS1-128 could be easily integrated into Server-side applications including Web pages, web forms, Crystal Reports, or SSRS Reports. Window applications including Class Library, Console applications, and extended Office application are supported as well.
Related .net document control helps: document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer... excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser. pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# document viewer: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
GS1-128 is actually a barcode application standard, rather than a barcode specification standard. GS1-128 is defined by GS1 in its system standards using Code 128 barcode specification.
GS1-128 in C#.NET - Overview
GS1-128 Generation - Sample Code in Visual C# .NET
using RasterEdge.Barcode.Bean;
BarCode ean128= new BarCode();

//Set barcode symbology type to EAN128
ean128. Symbology = Symbology. EAN128;

//EAN 128 encoding valid data: All ASCII characters supported, including numeric digits 0-9,
A-Z, a-z, special characters. Data Length: Variable length.
ean128.CodeToEncode = "(01)225";

ean128.ChecksumEnabled = true; //Apply checksum for EAN 128 barcode.

//Set EAN 128 image size

ean128.BarcodeUnit = BarcodeUnit.Pixel; // Unit of measure, Pixel, Cm and Inch supported.
ean128.DPI = 72; // EAN 128 image resolution in DPI.
ean128.X = 3; // EAN 128 bar module width (X dimention)
ean128.Y = 60; // EAN 128 bar module height (Y dimention)
ean128.LeftMargin = 0; // Image left margin size, minimum value is 10X.
ean128.RightMargin = 0; // Image right margin size, minimum value is 10X.
ean128.TopMargin = 0; // EAN 128 image top margin size
ean128.BottomMargin = 0; // EAN 128 image bottom margin size
ean128.Orientation = Orientation.Degree0; // Orientation, 90, 180, 270 degrees supported

//Set EAN 128 human readable text style

ean128.DisplayText = true; // Display human readable text
ean128.TextFont = new Font ("Arial", 10f, FontStyle. Regular);
ean128.TextMargin = 6; // Space between barcode and text
ean128. Displaychecksum = true; // Display checksum in the EAN 128 barcode text

//Generate EAN 128 barcodes in GIF image format

//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();

Other image formats including Png, Bmp, Tiff and Jpeg are also available at RasterEdge.