fnthex32.dll是用于斑馬條碼打印機打印漢子所需的dll文件。
調用方法(VB下的調用):
在程序中加入以下代碼:Private Declare Function GETFONTHEX Lib ".\fnthex32.dll" (ByVal chnstr As String, ByVal fontname As String, ByVal orient As Integer, ByVal height As Integer, ByVal width As Integer, ByVal bold As Integer, ByVal italic As Integer, ByVal hexbuf As String) As Integer
調用:
Dim CBuf As String * 1024
GETFONTHEX "打印內容", "宋體", 0, H,W, 0, 0, CBuf
說明:
打印內容,要打印的內容(字符型數(shù)據(jù));宋體,此處為要打印字符的字體名稱;0,打印內容的旋轉角度(0,90,180,270四種,H & W,要打印字符的高和寬的數(shù)據(jù)(數(shù)值型),粗體和斜體的設置,CBuf,打印內容的圖象代碼。