Inesoft PrintCE SDK EVC++
CPrintCE::Draw2OF5 Method

Draws Interleaved 2 of 5 type barcode.
String can be any length and contain only numbers. If total number of coded symbols are odd (number of characters in string + chaecksum) then 0 is inserted in the beginning of the string.

C++ Syntax: double object.Draw2OF5(
    LPCTSTR str,
    double pos_x,
    double pos_y,
    BOOL checksum,

    BOOL add_text,
    int thickness
);

eVB Syntax: value = object.Draw2OF5(str, pos_x, pos_y, checksum, add_text, thickness)

Parameters

str

[in] string to be "bar coded".

pos_x, pos_y

[in] coordinates on the page where the bar code will be drawn. If pos_x is a negative value then no bar code is actually drawn and actual width of this bar code is returned. If pos_y is a negative value then no bar code is actually drawn and actual height of this bar code is returned. Coordinates are set in the current measurement units (please refer to MeasureUnit)

checksum

[in] If parameter checksum is true modulo 10 checksum is added to barcode.

add_text

[in] if True - draws the string below the bar code. If FALSE, draws only the bar code.

thickness

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



Return Values

Width of the bar code, or height of the bar code (if pos_y is a negative value).
Width or height are return in the current measurement units (please refer to MeasureUnit).

 


© 2009 Inesoft. All rights reserved.