Scanner ActiveX Control

SetPrintText

 

Add text to an image when print. 

Public Function SetPrintText(
   ByVal iXPos As Integer, _
   ByVal iYPos As Integer, _
   ByVal strFontName As String, _
   ByVal iFontSize As Integer, _
   ByVal bFontBold As Boolean, _
   ByVal bFontItalic As Boolean, _
   ByVal bFontUnderline As Boolean, _
   ByVal clrFontColor As OLE_COLOR, _
   ByVal strText As String
) As Integer

 

Parameter

iXPos
x-coordinate of starting position .

iYPos
y-coordinate of starting position .

strFontName
the font name.

iFontSize
font size.

bFontBold
enable/disable font bold.

bFontItalic
enable/disable font italic.

bFontUnderline
enable/disable font underline.

clrFontColor
the font color.

strText
string to be drawn. 

Return Value

Return 1 - successful
Return 0 - Failed


Example

   

Visual Basic Syntax
Scanner1.SetPrintText 0, 0, "Arial", 18, False, False, False, RGB(255, 0, 0), "Your Text" Scanner1.PrintImage True