POS/Mobile Printer
Rev. 1.00
- unsigned int alignment
[in] Set the barcode alignment.
- unsigned int textPosition
[in] Set the barcode data printing position. 2-dimensional barcode has only
BXL_BC_TEXT_NONE .
No barcode data is printed.
The barcode data is printed above the barcode.
The barcode data is printed below the barcode.
- unsigned int attribute
[in] Set the separator height of 2D and 1D barcodes when printing GS1 (1 or 2).
[Return Values]
The function is successful.
Data transmission failed.
The barcode type is not supported.
The barcode data is incorrect.
The barcode is not supported.
ConnectToPrinter(………..);
char* barcodeData = “123456789012”;
barcodeInfo_s barcodeInfo;
……
barcodeInfo.height = 50;
barcodeInfo.width = 2;
barcodeInfo.textPosition = BARCODE_TEXT_BELOW;
PrintBarcode(BARCDE_UPCA, barcodeData, &barcodeInfo);
barcodeInfo.height = 50;
barcodeInfo.width = 2;
barcodeInfo.textPosition = BARCODE_TEXT_BELOW;
PrintBarcode(BARCDE_UPCE, barcodeData, &barcodeInfo);
barcodeInfo.height = 50;
barcodeInfo.width = 2;