DC_Draw2of5

Draws Interleaved 2 of 5 type barcode. String can be any length and contain only numbers.

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

checksum

If parameter checksum is true modulo 10 checksum is added to barcode.

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.