3-4 PrintBarcode
This function supports the 1-dimension and 2-dimension barcode printing function.
long PrintBarcode(
PCHAR Data,
long symbology,
long Height,
long Width,
long Alignment,
long TextPosition
);
[Parameters]
* Data
[in] ANSI Code Data ending with null. Barcode data to be printed are conveyed.
* symbology
[in] Defines the barcode type. The barcode type is defined in bxlconst.h.
BXL_BCS_EAN13
BXL_BCS_JAN13
BXL_BCS_EAN8
BXL_BCS_JAN8
1 ≤ n ≤ 255
(even number)
48 ≤ data ≤ 57, 65 ≤ data ≤ 68,
data =36,43,45,46,47,58
48 ≤ data ≤ 57, 65 ≤ data ≤ 90,
data =32,36,37,43,45,46,47
* Height
[in] This value sets the barcode height in Dot units. The value range is 1~255. Two
dimensional barcodes are not affected.
* Width
[in] This value sets the barcode width according to a value range of 2~7. If the print
area of the barcode exceeds the printing paper, barcode printing may not be possible.
Two dimensional barcodes are not affected by this value.
* Alignment
[in] This value sets the barcode alignment.