Data Matrix Barcode FAQ for ASP.NET

ASP.NET Web Server Control Generator, Data Matrix Barcode Image, Data, and Size Issues
Barcode ASP.NET > Barcode in ASP.NET > 2D > Data Matrix FAQ
Terrek Barcode for ASP.NET - Data Matrix Barcode FAQ
Data Matrix Barcode Generator Server Control is designed and developed to implement the simplicity of Data Matrix generation in ASP.NET Applications. This mature control generator SDK could be added into ASP.NET thus Data Matrix barcode images could be created on the form. Data Matrix generation could also be implemented in Microsoft IIS by using Data Matrix Barcode ASP.NET SDK.
In this page, the following aspects of Data Matrix barcode generation in .NET Winform are introduced:
  • Data Matrix in ASP.NET Generator SDK - Data Encoding Support
  • Data Matrix in ASP.NET Generator SDK - Barcode Scaling Support
  • Data Matrix in ASP.NET Generator SDK - Image Setting Support
  • Data Matrix in ASP.NET Generator SDK - Solution Projects Support
More Data Matrix barcode generators for solutions in distinct developing environments, such as Matrix Office Add-in for Excel, Data Matrix .NET Generator, and Data Matrix Crystal Report DLL.
Data Matrix in ASP.NET Generator SDK - Data Encoding Support
Valid Data of Data Matrix
  • ASCII values 0 - 127, in accordance ISO/IEC 646
  • ASCII characters 128-255, in accordance with ISO 8859-1
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43&BarcodeData =Terrek DataMatrix;
Data Matrix ASP.NET Control Data Mode
Data Matrix ASP.NET Generator SDK encodes above data with the following data modes:
  • DataMatrixDataMode.Auto (0): Barcode library will decide the best data mode for you.
  • DataMatrixDataMode.ASCII (1): it is used to encode data that mainly contains ASCII characters (0-127). This is the default encoding format by Barcode Library.
  • DataMatrixDataMode.C40 (2): it is used to encode data that mainly contains numeric and upper case characters.
  • DataMatrixDataMode.Text (3): it is used to encode data that mainly contains numeric and lower case characters.
  • DataMatrixDataMode.X12 (4):it is used to encode the standard ANSI X12 electronic data interchange characters.
  • DataMatrixDataMode.Edifact (5): it is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111).
  • DataMatrixDataMode.Base256 (6): it is used to encode 8 bit values.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43&DataMatrixDataMode=0;
Data Matrix in ASP.NET Generator SDK - Barcode Scaling Support
Data Matrix Module Width
Modules in Data Matrix are the small squares in dark and light colors. It is the unit used to size a Data Matrix symbol. The size of the module is measured by the float value of BarWidth property. Pixel, cm, and inch could be used as the unit of measure.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& BarWidth=2;
Format Mode
As QR Code version to QR Code, Data Matrix Format Mode defines how many modules are included in the generated barcode symbol. Square (10X10-144X144) and rectangular (8X18-16X48) arrangements are supported.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43&FormatMode=Format_10X10;
Margins Width
Increasing the width of margins around the symbol is one way to enhance the readability of the Data Matrix barcode image. The control library set the left, right, top, and bottom margins separately with float values.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& MarginL=10& MarginR=10& MarginT=10& MarginB=10;
Image Size
If the breakdown parameters are not provided, you can set the width and height of the barcode image directly. Once you enabled the image resize function, you only need to provide the size of entire barcode image. This intelligent Data Matrix will draw the barcode with reasonable parameters. The generated Data Matrix is 100% compatible with ISO / IEC 16022 (2nd edition 2006-09-15).
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& ImageResize=true&ImageWidth=150&ImageHeight=150;
Data Matrix in ASP.NET Generator SDK - Image Setting Support
Image Formats
With Terrek Barcode ASP.NET Control DLL, Data Matrix is created as high quality GIF, JPEG, or PNG graphic images. Tiff and Bitmap are supported as well. Please ensure the accordance of image format and suffix of image file name.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& ImageFormat=Png;
Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by Data Matrix generator could be managed with DPI.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& DotsPerInch=96;
Image Rotation
In case of any specified requirement of the image orientation, image rotation function is added to the control library. Rotation angles of 90, 180, and 270 degrees are supported.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=43& Rotation=Degree90;
Data Matrix in ASP.NET Generator SDK - Solution Projects Support
Data Matrix Barcode ASP.NET Control could be integrated into the following types of projects:
  • ASP.NET Web Site (design-time and runtime support)
  • .NET Web Service Project (runtime support)
  • Console Application (runtime support)
  • Class Library (runtime support)