专家解答:
B_Prn_Barcode()
==============================================================================
PURPOSE Create a "barcode" object and a "counter" object.
SYNTAX int B_Prn_Barcode(int x,int y,int ori,char type[4],int narrow,
int width,int height, char human,LPCTSTR data);
PARAMETER int x; X coordinate in dots.
int y; Y coordinate in dots.
int ori; Orientation or print direction.
Value: 0, 1, 2, 3.
char type[4]; Bar code type as follows:
+========================================================================+
| type| Bar Code | type| Bar Code |
+========================================================================+
| 0 | Code 128 UCC (shipping cont-| E30| EAN-13 |
| | ainer code) +-----+------------------------------+
+-----+-----------------------------+ E32| EAN-13 2 digit add-on |
| 1 | Code 128 subset A,B and C +-----+------------------------------+
+-----+-----------------------------+ E35| EAN-13 5 digit add-on |
| 1E | UCC/EAN +-----+------------------------------+
+-----+-----------------------------+ E80| EAN-8 |
| 2 | Interleaved 2 of 5 +-----+------------------------------+
+-----+-----------------------------+ E82| EAN-8 2 digit add-on |
| 2C | Interleaved 2 of 5 with che-+-----+------------------------------+
| | ck sum digit | E85| EAN-8 5 digit add-on |
+-----+-----------------------------+-----+------------------------------+
| 2D | Interleaved 2 of 5 with hum-| K | Codabar |
| | an readable check digit +-----+------------------------------+
+-----+-----------------------------+ P | Postnet |
| 2G | German Postcode +-----+------------------------------+
+-----+-----------------------------+ UA0| UPC-A |
| 2M | Matrix 2 of 5 +-----+------------------------------+
+-----+-----------------------------+ UA2| UPC-A 2 digit add-on |
| 2U | UPC Interleaved 2 of 5 (应输入13位) +-----+------------------------------+
+-----+-----------------------------+ UA5| UPC-A 5 digit add-on |
| 3 | Code 3 of 9 +-----+------------------------------+
+-----+-----------------------------+ UE0| UPC-E |
| 3C | Code 3 of 9 with check sum +-----+------------------------------+
| | digit | UE2| UPC-E 2 digit add-on |
+-----+-----------------------------+-----+------------------------------+
| 9 | Code 93 | UE5| UPC-E 5 digit add-on |
+-----+-----------------------------+-----+------------------------------+
int narrow; Narrow bar width in pixels.
int width(无效参数); Wide bar width in pixels.
int height; Bar code height in pixels.
char human; N -no text is printed or B - the human
readable text is printed.
LPCTSTR data; A text string. When the data is added the
format for <Operation Number> is added
counter. Operation: "+" or "-" sign,
Number: 0 ~ 32768 number.
RETURN 0 -> OK.
Reference BW-Error.txt file.
EXAMPLE B_Prn_Barcode(650,15,0,"E80",2,2,51,'B',"1234567"); // no counter
or
B_Prn_Barcode(650,15,0,"E80",2,2,51,'B',"1234567<+10>");//have a counter |
|