How to Generate Data Matrix in ASP.NET Library
Data Matrix is an alphanumeric two-dimensional barcode symbology, which can hold large amounts of data, especially suited for making very small codes. Data Matrix is also known as Data Matrix ECC200 and has a capacity of encoding up to 2,335 alphanumeric characters.
BizCode Generator for ASP.NET is a powerful ASP.NET barcode generation class library. It enables developers and other users to create Data Matrix barcodes in ASP.NET applications. This product requires minimum Data Matrix and provides a set of Data Matrix generation guide for you.
With
Data Matrix ASP.NET Generator, Data Matrix barcode may export into Png, Jpeg/Jpg, Gif, Tiff, Bmp formats or in ASP.NET stream object & graphics object. Selected barcode orientations are provided for rotating Data Matrix images into any angle of 0, 90, 180 or 270 degree.
This document explains how to generate Data Matrix barcode image in ASP.NET, IIS and other specific tutorials of Data Matrix data, image and size setting, please see:
encode Data matrix data in ASP.NET,
customize Data Matrix image in ASP.NET and
control Data Matrix size in ASP.NET.
Data Matrix Generator for ASP.NET Features
| Encodable Characters | Support to encode: - Standard ASCII characters 0-127 (default: ISO/IEC 646) - Extended ASCII characters 128-255 (default: ISO/IEC 8859-1) |
| .NET Framework Support | .NET 2.0/3.0/4.0 and Visual Studio .NET 2005/2008/2010 |
| Internet Information Service | Support to add Data Matrix barcode generating features onto Internet Information Service (IIS) |
| Barcode Specification | Accurate Data Matrix generating in according with ISO / IEC 16022 (2nd edition 2006-09-15) and GS1 General Specification (Version 8) |
| Size Adjustments | Flexible size options over Data Matrix module size, barcode width & height, margins and other properties |
| Web Browsers | Stream high-quality Data Matrix barcode images that are compatible with all major web browsers, including IE, Chrome, Opera, Safari, FireFox, etc. |
Data Matrix Generator for ASP.NET Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP | Development Environments - .NET 2.0/3.0/4.0 - C#, VB.NET, Managed C++, Borland Delphi    for.NET - Visual Studio 2005/2008/2010 - Internet Information Service (IIS) |
Install Data Matrix Generator for ASP.NET
- Download BizCode Generator for ASP.NET and unzip;
- Add reference: Add "BusinessRefinery.Barcode.Web.dll" to your ASP.NET project reference;
- Add to toolbox: To add Barcode Control to your ASP.NET Web Forms toolbox;
How to Drag & Drop Barcode Control into ASP.NET projects?
- Install ASP.NET Barcode Control;
- Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
- Copy "datamatrix.aspx" and "datamatrix.aspx.cs" to the folder where your aspx pages are generating barcodes;
- Drag and drop the WebDataMatrix control into the Forms;
- Run the website and you will see a barcode image generated;
- More Data Matrix Setting see below.
How to Generate Data Matrix with C#, VB.NET Class in ASP.NET?
Copy those following sample code to your ASP.NET project:
using BusinessRefinery.Barcode;
DataMatrix barcode = new DataMatrix();
barcode.Code = "Data Matrix";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/data-matrix-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.DataMatrix =
New BusinessRefinery.Barcode.DataMatrix()
barcode.Code = "Data Matrix"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/data-matrix-vb-net.gif")
How to Create Your Own Data Matrix in IIS?
- Download BizCode Generator for ASP.NET and unzip;
- Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
- Restart IIS, navigate to http://localhost/br_barcode/datamatrix.aspx?code=0123456789/i>;
- Add an image tag <img> into the web page to create Code 39 barcode image in html or aspx pages, e.g.
<img src="http://localhost/br_barcode/datamatrix.aspx?code=0123456789"/>.