Raster Edge provides a set of solutions for the integration of EAN-13 in .NET application. GIF, PNG, BMP, and JPG graphic images carrying EAN-13 symbols could be generated in a variety of applications using Visual C# .NET. .NET 2.0 and later versions are supported.
Related .net document control helps:
asp.net document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net pdf page:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net document viewer:
EdgeDoc:ASP.NET Document Viewer C# Control:
Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net annotate pdf:
ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
EAN-13 is used world-widely in supply chain management (SCM) for trade item identification. EAN-13 labels are placed on almost every product on the shelves of your local supermarket. Some variation of EAN-13, such as ISBN and ISSN, are used for publication item identification.
EAN-13 in C#.NET - Overview
- Included Web Controls for ASP.NET and Window forms Control for Winforms
- Stream graphic EAN-13 images with high quality
- Print EAN-13 for Web forms and Web pages
- Integrate EAN-13 into Class Library, Console Applications, and Windows applications
- Crystal Report and Microsoft Reporting Service are supported
- Encode supplement numeric data using add-on symbol
- Easy to size every element of the barcode
EAN-13 Generation - Sample Code in Visual C# .NET
using RasterEdge.Barcode.Bean;
BarCode upca= new BarCode();
//Set barcode symbology type to UPCA, UPCASup2, UPCASup5
ean13. Symbology = Symbology. UPCA;
//Set EAN 13 encoding valid data: 12 digits numeric digits
without checksum.
ean13.CodeToEncode = "012345678912";
ean13.ChecksumEnabled = true; //Apply checksum for EAN 13 barcode.
//Set EAN 13 image size
ean13.BarcodeUnit = BarcodeUnit.Pixel; // Unit of measure, Pixel, Cm and Inch supported.
ean13.DPI = 72; // EAN 13 image resolution in DPI.
ean13.X = 2; // EAN 13 bar module width (X dimention)
ean13.Y = 60; // EAN 13 bar module height (Y dimention)
ean13.LeftMargin = 0; // Image left margin size, minimum value is 10X.
ean13.RightMargin = 0; // Image right margin size, minimum value is 10X.
ean13.TopMargin = 0; // EAN 13 image top margin size
ean13.BottomMargin = 0; // EAN 13 image bottom margin size
ean13.Orientation = Orientation.Degree0; // Orientation, 90, 180, 270 degrees supported
ean13.SupplementCode = "02"; // Supplement code. It should be 2 or 5 digits
ean13.SupplementHeight = 0.8f; // Supplement bar height vs primary bar height ratio.
ean13.SupplementSpace = 15; // Space between barcode and supplement barcode
//Set EAN 13 human readable text
ean13.DisplayText = true; // Display human readable text
ean13.TextFont = new Font ("Arial", 10f, FontStyle. Regular);
ean13.TextMargin = 6; // Space between barcode and text
ean13. Displaychecksum = true; // Display checksum in the EAN 13 barcode text
//Generate EAN 13 barcodes in image format GIF
ean13.generateBarcodeToImageFile("barcode-ean13-csharp.gif");
//Create EAN 13 barcodes in Stream object
ean13.generateBarcodeToStream(".NET System.IO.Stream Object");
//Draw & Print EAN 13 barcodes to Graphics object
ean13.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");
//Generate EAN 13 barcodes & write to byte[]
byte[] barcodeInBytes = ean13.generateBarcodeToByteArray();
//Generate EAN 13 barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = ean13.generateBarcodeToBitmap();
Other image formats including Png, Bmp, Tiff and Jpeg are also available for this dll.