Inesoft PrintCE SDK .NET
PrintCE::DrawMSI Method

Draws MSI type barcode.
String can be any length and contain only numbers.

C# Syntax: double value = object.DrawMSI(string str,double pos_x, double pos_y, bool add_text, int checksum_type, int thickness);
VB Syntax: Dim value As Double = object.DrawMSI(ByVal str As String, ByVal pos_x As Double, ByVal pos_y As Double, ByVal add_text As Boolean, ByVal checksum_type As Int32, ByVal thickness As Int32)

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.

checksum_type

[in] the type of checksum. May be:
   0 - Modulo 10 checksum.
   1 - Modulo 10 checksum followed by Modulo 10 checksum.
   2 - Modulo 11 checksum followed by Modulo 10 checksums.

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.