Image Viewer CP ActiveX Control

BarCodeWriterSetHeight 

 

Set the left and top position of barcode when create the barcode. You must set BarCodeWriterFitToRect to false if you want to set BarCodeWriterSetHeight or BarCodeWriterLeftTopPos properties.

Public Function BarCodeWriterLeftTopPos( _
   ByVal iLeft  As Integer, _
   ByVal iTop  As Integer
) 

 

Parameter

iLeft
the left position of barcode.

iTop
the top position of barcode.


No Return Value


Example

   

Visual Basic Syntax
ImageViewer1.BarCodeWriterSetValue "12345"
ImageViewer1.BarCodeWriterSetStandard 0
ImageViewer1.BarCodeWriterSetOutputArea 200, 100
ImageViewer1.BarCodeWriterShowCheckDigit true
ImageViewer1.BarCodeWriterShowText true
ImageViewer1.BarCodeWriterFitToRect false
ImageViewer1.BarCodeWriterSetFontSize 18
ImageViewer1.BarCodeWriterLeftTopPos 100, 0
ImageViewer1.BarCodeWriterSetHeight 200

ImageViewer1.BarCodeWriterPreview
strError = ImageViewer1.BarCodeWriterGetErrorMessage
If strError <> "" Then
   MsgBox strError
   Exit Sub
End If