|
DC_DrawCode128 |
Draws Code 128 type barcode.
String can be any length and contain any symbols from 128 ASCII charset.LONG DC_DrawCode128(
LPCTSTR str,
double pos_x,
double pos_y,
bool add_text,
bool advance,
int thickness
);Parameters
str
string to be "bar coded".
pos_x,pos_y
coordinates on the page where the bar code will be drawn.
addtext
if True - draws the string below the bar code. If FALSE, draws only the bar code.
advance
if True - use client script to print barcode. If FALSE, draws automatic.
Original command string
Convert string
START A
STA:
START B
STB:
START C
STC:
CODE A
CEA:
CODE B
CEB:
CODE C
CEC:
FUNC1
FC1:
FUNC2
FC2:
FUNC3
FC3:
FUNC4
FC4:
SHIFT
SIT:
for example, if you want to print code string like CODE C "0123" and CODE B "abc", so you should make command string is: "CEC:0123CEB:abc", and set advance to TRUE also.
thickness
bar code bar widths.
0 - smallest
1 - middle size
2 - widest.
Return Values
SPRT_SUCCEED indicates success, SPRT_FAILED indicates failure
See Also
© 2008 SPRT . All rights reserved.