fnthex32.dll是用于斑馬條碼打印機打印漢子所需的dll文件。
調(diào)用方法(VB下的調(diào)用):
在程序中加入以下代碼: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
調(diào)用:
Dim CBuf As String * 1024
GETFONTHEX "打印內(nèi)容", "宋體", 0, H,W, 0, 0, CBuf
說明:
打印內(nèi)容,要打印的內(nèi)容(字符型數(shù)據(jù));宋體,此處為要打印字符的字體名稱;0,打印內(nèi)容的旋轉(zhuǎn)角度(0,90,180,270四種,H & W,要打印字符的高和寬的數(shù)據(jù)(數(shù)值型),粗體和斜體的設(shè)置,CBuf,打印內(nèi)容的圖象代碼。