8.19. DataMatrixTargetSizeID Property

Description

Returns or sets a value that determines the shape of the DataMatrix symbol produced by Morovia Barcode DLL.

Syntax

HRESULT get_DataMatrixTargetSizeID(HANDLE handle, LONG* pVal);
HRESULT put_DataMatrixTargetSizeID(HANDLE handle, LONG val); 

Remarks

Data Matrix only allows a limit number of combinations of rows and columns. You must set the property to 0 (automatic) or one of the following values:

Table 8.5. DataMatrixTargetSizeID options

Constant Value Description
mbxDMTargetSizeAuto 0 Automatic selection of data matrix size
mbxDMTargetSize_12X12 1 Rectangle symbol of 12 by 12 modules
mbxDMTargetSize_14X14 2 Rectangle symbol of 14 by 14 modules
mbxDMTargetSize_16X16 3 Rectangle symbol of 16 by 16 modules
mbxDMTargetSize_18X18 4 Rectangle symbol of 18 by 18 modules
mbxDMTargetSize_20X20 5 Rectangle symbol of 20 by 20 modules
mbxDMTargetSize_22X22 6 Rectangle symbol of 22 by 22 modules
mbxDMTargetSize_24X24 7 Rectangle symbol of 24 by 24 modules
mbxDMTargetSize_26X26 8 Rectangle symbol of 26 by 26 modules
mbxDMTargetSize_32X32 9 Rectangle symbol of 32 by 32 modules
mbxDMTargetSize_36X36 10 Rectangle symbol of 36 by 36 modules
mbxDMTargetSize_40X40 11 Rectangle symbol of 40 by 40 modules
mbxDMTargetSize_44X44 12 Rectangle symbol of 44 by 44 modules
mbxDMTargetSize_48X48 13 Rectangle symbol of 48 by 48 modules
mbxDMTargetSize_52X52 14 Rectangle symbol of 52 by 52 modules
mbxDMTargetSize_64X64 15 Rectangle symbol of 64 by 64 modules
mbxDMTargetSize_72X72 16 Rectangle symbol of 72 by 72 modules
mbxDMTargetSize_80X80 17 Rectangle symbol of 80 by 80 modules
mbxDMTargetSize_88X88 18 Rectangle symbol of 88 by 88 modules
mbxDMTargetSize_96X96 19 Rectangle symbol of 96 by 96 modules
mbxDMTargetSize_104X104 20 Rectangle symbol of 104 by 104 modules
mbxDMTargetSize_120X120 21 Rectangle symbol of 120 by 120 modules
mbxDMTargetSize_132X132 22 Rectangle symbol of 132 by 132 modules
mbxDMTargetSize_144X144 23 Rectangle symbol of 144 by 144 modules
mbxDMTargetSize_8X18 24 Rectangle symbol of 8 by 18 modules
mbxDMTargetSize_8X32 25 Rectangle symbol of 8 by 32 modules
mbxDMTargetSize_12X26 26 Rectangle symbol of 12 by 26 modules
mbxDMTargetSize_12X36 27 Rectangle symbol of 12 by 36 modules
mbxDMTargetSize_16X36 28 Rectangle symbol of 16 by 36 modules
mbxDMTargetSize_16X48 29 Rectangle symbol of 16 by 48 modules
mbxDMTargetSize_10X10 30 Rectangle symbol of 10 by 10 modules

Data matrix offers limited combinations between the number of rows and columns. A valid selection is called a data matrix size. A data matrix symbol can be any one of the 30 shapes listed in table Table 8.5, “DataMatrixTargetSizeID options”. In addition, our software uses value 0 for automatic size selection. The value 0 means “do not care”. Barcode DLL selects the smallest size to fit your data when you set DataMatrixTargetSizeID to 0.

Note

The size ID for the smallest data matrix shape, mbxDMTargetSize_10X10, is 30.

See Also

Section 8.18, “DataMatrixModuleSize Property”