Image Viewer CP ActiveX Control

BarCodeWriterSetOutputArea

 

Set the output rectangle of barcode when create the barcode.

Public Function BarCodeWriterSetOutputArea( _
   ByVal iWidth  As Integer ,_
   ByVal iHeight  As Integer
) 

 

Parameter

iWidth
the width of barcode.

iHeight
the height 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