Image Viewer CP ActiveX Control

BarCodeWriterPreview

 

Preview the barcode.

Public Function BarCodeWriterPreview()
as integer

 

No Parameter


Return Value
1 - successful
0 - failed

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