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
说明:
打印内容,要打印的内容(字符型数据);宋体,此处为要打印字符的字体名称;0,打印内容的旋转角度(0,90,180,270四种,H & W,要打印字符的高和宽的数据(数值型),粗体和斜体的设置,CBuf,打印内容的图象代码。