Image Viewer CP ActiveX Control

BarCodeWriterSetStandard

 

Set the barcode standard when create the barcode.

Public Function BarCodeWriterSetStandard( _
   ByVal iIndex As Integer) 

 

Parameter

iIndex
0 -Codabar
1 -Code11
2 -Code128A
3 -Code128B
4 -Code128C
5 -Code39
6 -EAN8
7 -EAN13
8 -Industrial25
9 -Interleaved25
10 -Matrix25
11 -Plessey
12 -UPCA
13 -UPCE

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