Inesoft PrintCE SDK ActiveX
CPrintCE::DrawPostnet Method

Draws Postnet type barcode.
Postnet type barcode is a standard 5-digit Zip Code, a Zip + 4 code, or a full 11-point delivery point code.
Dash symbol - to separate the first 5 and last 4 and 2 digits is allowed (i.e.: 12345-1234-12).

C++ Syntax: double object.DrawPostnet(
    LPCTSTR str,
    double pos_x,
    double pos_y,
    BOOL add_text
);

eVB Syntax: value = object.DrawPostnet(str, pos_x, pos_y, add_text)

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).

add_text

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



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.