Data Matrix Property Settings & Methods


Data Matrix Property Settings & Methods
Top
Category Properties Value Comments
Basic Property: Data
URL: DATA
Type: string
Default: "DataMatrix"
Barcode value to encode.

Data Matrix Valid Data Char Set:
  • ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646
    NOTE: This version consists of the G0 set of ISO/IEC 646 and the C0 set of ISO/IEC 6429 with values 28 - 31 modified to FS, GS, RS and US respectively.
  • ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII.

 
Data Matrix
Special
Property: ProcessTilde
URL: PROCESS-TILDE
Type: bool
Default: true
Set the ProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
    ~ai2: AI with 2 digits
    ~ai3: AI with 3 digits
    ~ai4: AI with 4 digits
    ~ai5: AI with 5 digits
    ~ai6: AI with 6 digits
    ~ai7: AI with 7 digits
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • ~rp: Reader Programming (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ~m5: 05 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m5ABCD1234".
  • ~m6: 06 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m6ABCD1234".
Property: DataMode
URL: DATA-MODE
Type: DataMatrixDataMode

Default: DataMatrixDataMode.
ASCII (1)
Data Matrix data encoding mode.

Valid values are:
  • 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.
Property: FormatMode
URL: FORMAT-MODE
Type: DataMatrixFormatMode

Default: DataMatrixFormatMode.
Format_10X10 (0)
Default is DataMatrixFormatMode.Format_10X10 (0). Specifies the Data Matrix Format to use on that symbology. Valid values see enum DataMatrixFormatMode.Format_*X*;
Property: FNC1
URL: FNC1
Type: FNC1

Default: FNC1.
FNC1_NONE (0)
To encode GS1 compatible Data Matrix barcode, you need set FNC1 value to FNC1.FNC1_1ST_POS (1).
Property: StructuredAppend
URL: STRUCTURED-APPEND
Type: bool
Default: false
Set StructuredAppend property to true, then Structured Append is enabled.
Property: SymbolCount
URL: SYMBOLE-COUNT
Type: int
Default: 0
Set SymbolCount property to the number of total symbols which make the sequence.
Property: SymbolIndex
URL: SYMBOL-INDEX
Type: int
Default: 0
Set SymbolIndex property to the position of current symbol in the secuence (Start with 0).
Property: FileId
URL: FILE-ID
Type: int
Default: 0
Set FileId property to be identified to the same file.
 
Barcode
Size
Related
Property: AutoResize
URL: AUTO-RESIZE
Type: bool
Default: false
Auto resize the generated barcode image.
Property: BarAlignment
URL: BAR-ALIGNMENT
Type: int
Default: 1 (center)
Barcode horizontal alignment inside the image. 0: left, 1: center, 2: right.
Property: UOM
URL: UOM
Type: UnitOfMeasure
Default: PIXEL (0)
Unit of meature for all size related settings in the library.

Valid values:
  • UnitOfMeasure.PIXEL (0)
  • UnitOfMeasure.CM (1)
  • UnitOfMeasure.INCH (2)
Property: X
URL: X
Type: float
Default: 3
barcode module width and height, default is 3 pixel.
Property: BarcodeWidth
URL: BARCODE-WIDTH
Type: float
Default: 0
Barcode image width.

If BarcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width.
Property: BarcodeHeight
URL: BARCODE-HEIGHT
Type: float
Default: 0
Barcode image height.

If BarcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height.
Property: LeftMargin
URL: LEFT-MARGIN
Type: float
Default: 0
Barcode image left margin size.
Property: RightMargin
URL: RIGHT-MARGIN
Type: float
Default: 0
Barcode image right margin size.
Property: TopMargin
URL: TOP-MARGIN
Type: float
Default: 0
Barcode image top margin size.
Property: BottomMargin
URL: BOTTOM-MARGIN
Type: float
Default: 0
Barcode image bottom margin size.
Property: Resolution
URL: RESOLUTION
Type: int
Default: 72
Barcode image resolution in DPI (Dots per inch).
Property: Rotate
URL: ROTATE
Type: Rotate
Default: Rotate.Rotate0 (0)
Valid values:

  • Rotate.Rotate0 (0)
  • Rotate.Rotate90 (1)
  • Rotate.Rotate180 (2)
  • Rotate.Rotate270 (3)
 
Barcode
Colors
Property: BackColor
URL: BACK-COLOR
Type: Color
Default: white
Barcode image background color.
Property: ForeColor
URL: FORE-COLOR
Type: Color
Default: black
Barcode image foreground color.
 
In WebStream query string, please use int value for Enums, "true" and "false" for bool.

Barcode Settings
Top

Barcode for .NET Barcode Generator - Bar Code Types Generation



OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET. Combined with its major reporting barcode tools as well as its Microsoft Office (Excel & Word) barcode add-on, barcode fonts, OnBarcode offers comprehensive barcode solution for building business applications. OnBarcode products help thousands of companies be more productive and deliver high quality bar code automation products under budget and on time.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.