试过了,好像没反应诶,
code
$dll = DllOpen("ZebraPrint.dll")
;$result1=Dllcall ("ZebraPrint.dll","bool","SerialPrint","int","1","str","bggb vb")
$Data="^XA"
$Data=$Data&"^LH0,0"
$Data=$Data&"^BY3^FO70,137^BCN,40,N,N,N^FD>;{SnBar}^FS"
$Data=$Data&"^AFN,26,14^FO100,180^CI0^FDSN:{Sn}^FS"
$Data=$Data&"^PQ{Sheet}"
$Data=$Data&"^XZ"
$result2=DllCall ("ZebraPrint.dll","bool","ParallelPrint","str",$Data)
DllClose($dll)
打印机是斑马条码打印机
$data的内容是zebra的语言
若将$data的内容保存在一个1.txt文件里,是可以打印的
1.txt^XA
^LH0,0
^BY3^FO70,137^BCN,40,N,N,N^FD>;{SnBar}^FS
^AFN,26,14^FO100,180^CI0^FDSN:{Sn}^FS
^PQ{Sheet}
^XZ
[ 本帖最后由 ken0137 于 2009-1-13 15:13 编辑 ] |