您的位置->>速创科技->>在线支持                                  

编号:3174 留言者名称:昆明迅势 标题:错误"varilabe is error,the barcode type is error",急"
用OS214条码打印机,使用PB9.0进行编程,在PPLA模式下,调用A_Prn_Barcode 函数,提示"varilabe is error."为何原因
函数声名:
Function long A_Prn_Barcode (long x1, long y1, long ori, string typee , long narrow,long width1, long height1,string mode,long numeric,string data ) library "WINPPLA.DLL"
调用:

A_Prn_Barcode(li_x1 + 228+li_x, 163, 2, 'G', 3, 100, 80, 'a',0,"690102855048")

针对PPLZ进行编程,提示"This barcode type is error"

函数声名:

Function long Z_Prn_Barcode (long x1, long y1, long ori,long narrow,long width1, long height1,string typee ,long increase, string data,string p1, string p2,string p3,string p4,string p5) library "WINPPLZ.DLL"

调用:
Z_Prn_Barcode(li_x1 + 228+li_x, 163, 2, 2, 2, 80, '8', 0,'20100032','Y','N','N','N','N')

不知为何原因,忘能尽快解答.谢谢
地区:云南    留言时间: 2004-2-13 14:26:23
专家解答:
A_Prn_Barcode(li_x1 + 228+li_x, 163, 2, 'G', 3, 100, 80, 'a',0,"690102855048")
中'G'请用其ascii码
Z_Prn_Barcode(li_x1 + 228+li_x, 163, 2, 2, 2, 80, '8', 0,'20100032','Y','N','N','N','N')中'8'用ascii码

条码小知识:
为什么要使用条码?

条码的应用有如下优越性:

1.可靠准确。有资料可查键盘输入平均每300个字符一个错误,而条码输入平均每15000个字符一个错误。如果 加上校验为位出错率是千万分之一。

2.数据输入速度快。键盘输入,一个每分钟打90个字的打字员1.6秒可输入12个字符或字符串,而使用条码,做 同样的工作只需0.3秒,速度提高了5倍。

3.经济便宜。与其它自动化识别技术相比较,推广应用条码技术,所需费用较长低。