Image Viewer CP ActiveX Control

BarCodeWriterFitToRect  

 

Set Fit to rectangle or not when create the barcode. If you set to false, you may set BarCodeWriterSetHeight or BarCodeWriterLeftTopPos properties.

Public Function BarCodeWriterFitToRect( _
   ByVal bFit  As bool
) 

 

Parameter

bFit
true - fit to rectangle, false - not fit to rectangle.

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 true
ImageViewer1.BarCodeWriterSetFontSize 18
ImageViewer1.BarCodeWriterPreview
strError = ImageViewer1.BarCodeWriterGetErrorMessage
If strError <> "" Then
   MsgBox strError
   Exit Sub
End If