typedef struct _tagBARCODEWRITEMAXI
{
L_UINT uStructSize;
L_UINT32 ulFlags;
L_INT MaxiMode;
L_INT nXResolution;
L_BOOL OpenSystemStandard;
L_INT Year;
L_INT CountryCode;
L_INT ServiceClass;
L_INT PostalCodeNum;
L_CHAR PostalCodeChar[7];
} BARCODEWRITEMAXI, * pBARCODEWRITEMAXI;
The BARCODEWRITEMAXI structure contains information for writing Maxi symbols.
Member | Description | |
uStructSize | Size of this structure in bytes. Use the sizeof() macro to calculate this value. | |
ulFlags | Reserved for future use. | |
MaxiMode | Specifies which encoding mode to use when writing a Maxi Code barcode. The following modes are possible: | |
Value | Meaning | |
BARCODE_MAXI_CODE_MODE_2 | Formatted data containing a structured Carrier Message with a numeric postal code. (Primarily used for US domestic destinations.) | |
BARCODE_MAXI_CODE_MODE_3 | Formatted data containing a structured Carrier Message with an alphanumeric postal code. (Primarily used for international destinations.) | |
BARCODE_MAXI_CODE_MODE_4 | Unformatted data with Standard Error Correction. | |
BARCODE_MAXI_CODE_MODE_5 | Unformatted data with Enhanced Error Correction. | |
nXResolution | Specifies the resolution of the output barcode, in DPI. | |
OpenSystemStandard | Specifies whether to use open system standard. | |
Year | Specifies the 2-digit year when writing a Maxi Code barcode using mode 2 or mode 3 with open system standard message. Possible values range from 00-99. | |
CountryCode | Specifies the 3-digit country code when writing a Maxi Code barcode using mode 2 or mode 3. See ISO 3166. | |
ServiceClass | Specifies the service class when writing a Maxi Code barcode using mode 2 or mode 3. | |
PostalCodeNum | Specifies the numeric postal code (zip +4) when writing a Maxi Code barcode using mode 2. | |
PostalCodeChar[7] | Specifies the alphanumeric postal code when writing a Maxi Code barcode using mode 3. Refer to the Universal Postal Union for possible postal codes. |
pBARCODEWRITEMAXI is a pointer to a BARCODEWRITEMAXI structure. Where the function parameter type is pBARCODEWRITEMAXI, you can declare a BARCODEWRITEMAXI variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pBARCODEWRITEMAXI variable is necessary only if your program requires a pointer.
A MaxiCode barcode has a fixed size: 1.1 inches by 1.05 inches, with 3 concentric circles in the center for orientation. It uses a hexagonal grid with 866 modules ordered in 33 rows. A MaxiCode barcode can store 93 Alphanumeric characters or 138 numeric characters.
The OpenSystemStandard member should be set to TRUE to use an open system. This is necessary if the labels are to be scanned by different, unknown barcode readers.