3-4 PrintBarcode
This function supports one-dimensional and two-dimensional barcode printing.
async Task<Int32> PrintBarcode(
byte[] data, Int32 barcodeType, Int32 height, Int32 width, Int32 alignment, Int32 textPosition)
or
async Task<Int32> PrintBarcode(
string data, Int32 barcodeType, Int32 height, Int32 width, Int32 alignment, Int32 textPosition)
[Parameters]
* Data
[in] This is byte array or string data which sends barcode data to print.
* barcodeType
[in] This defines the type of barcode and is defined in bxlconst.cs.
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 height of the barcode and is in the unit of Dot. The value ranges
1-255. Two-dimensional barcodes are not affected by it.
* Width
[in] This value sets the width of the barcode and ranges 2-7. If the printing size
exceeds the space in the paper, the barcode may not be printed. Two-dimensional
barcodes are not affected by it.
* Alignment
[in] This value sets the alignment of the barcode.