Image Viewer CP ActiveX Control

BarCodeWriterSave

 

Save the barcode to image file.

Public Function BarCodeWriterSave(
 ByVal strFileName  As String, _
 ByVal strFileType  As String
)
as integer

 

Parameter

strFileName 
   the new file you want to save.

strFileType
 the output Image format.
 JPG  - JPEG file.
 PNG - PNG file.
 GIF - GIF file.
 TIF - TIF file.
 BMP - BMP file.
 PCX - PCX file.
 JP2 - JP2 file.
 JPC - JPC file.
 RAS - RAS file.
 PGX - PGX file.
 PNM - PNM file.

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.BarCodeWriterSave("c:\test", "bmp")