DC_DrawUPCE

Draws UPC-E type barcode.
String should contain 7 numbers. 2-Digit or 5-Digit.

LONG DC_DrawUPCE(
    LPCTSTR str,
    double pos_x,
    double pos_y,
    bool add_text,
    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.

thickness

bar code bar widths.
   0 - smallest
   1 - middle size
   2 - widest.

 

Return Values

SPRT_SUCCEED indicates success, SPRT_FAILED indicates failure



© 2008 SPRT . All rights reserved.