大家好,欢迎来到IT知识分享网。
上面是效果图,从图中可以看到有3部分组成,1、单纯的文字信息。2、一维码。3、图片。
一、单纯的文字打印命令:
“^FO” + title_x + “,” + title_y + “A1N,30,30FD产品名称:CAINIAOLEMO^FS”;
^A命令的格式:
^Af,o,h,w
^A
= 缩放/点阵字体
f
= 字体名
默认值:0(CG Triumvirate Bold Condensed)
其他值:A-Z,0-9(打印机的任何字体,包括下载字体,EPROM中储存的,当然这些字体必须用^CW来定义为A-Z,0-9)
0
= 字体方向
默认值:FW默认值或上一个FW的值。
其他值: N = 正常 (Normal)
R = 顺时针旋转90度(Roated)
I = 顺时针旋转180度(Inverted)
B = 顺时针旋转270度 (Bottom)
h
= 字符高度
曲线字体:
默认值: 15点或上一次^CF的值。
可接受的值: 10-1500点
点阵字体:
默认值: 指定点阵字体的标准高度
其他值: 标准高度高度的整数倍,2-10。
w
= 字符宽度
曲线字体:
默认值: 12点或上一次^CV的值,也可以显示为0
可接受的值: 10-1500点
点阵字体:
默认值: 指定点阵字体的标准宽度
其他值: 标准高度高度的整数倍,2-10。
2、一维码打印
“^FO” + x + “,” +y + “BY2,2.0,40BCN,N,N,N^FD” + sn + “^FS”;
^FO:设置字段位置
^BY:条码字段默认参数设置
^BC:Code128,()
^FD:Field Data数据字段,限制100字符
^FS:字段分隔,表示字段定义结束
^A:缩放/点阵字体
^BY命令的格式:
^Byw,r,h
^BY = 改变条码默认参数
w = 模块(窄条)宽
开机初始化值:2点
可接受的数值:1-10点
r = 宽条与窄条的比例
开机初始化值:3.0
可接受的数值:2.0到3.0,0.1的增量(对固定比例的条码无效)
h = 条码高度
开机初始化值:10点
可接受的数值:1点到标签高度。
^BC命令的格式:
^BCo,h,f,g,e,m
^BC
= Code 128条码
o
= 字体方向
默认值:FW默认值或上一个FW的值。
其他值: N = 正常 (Normal)
R = 顺时针旋转90度(Roated)
I = 顺时针旋转180度(Inverted)
B = 顺时针旋转270度 (Bottom)
h
= 条码高度
默认值:由^BY设置
其他值:1到9999点
f
= 打印注释行
默认值: Y = 打印(Yes)
其他值:N = 不打印(No)
g = 将注释行打印在条码上方
默认值: N = 不打印在条码上方
其他值: Y = 打印在条码上方
e = 打印UCC校验位
默认值:Y = 打印(Yes)
其他值:N = 不打印(No)
m = 模式
默认值:N = 不选择模式
其他值:U = UCC匹配模式。(FD或SN后必须有19位数字。)用FNC1值自动选择C子集。
版本16.3.0版本有效:
A = 自动模式。自动模式将分析收到的数据并自动决定选取最佳的压缩方式。^FD可以用全部ASCII字符。打印机将确定是否变化子集。四个及以上的数字将自动变化为C子集。
3、图片打印
“^FO” + (title_x + 500)+ “,” + title_y + “^GFA,2748,2748,12, ,::::::::::::::::O0G1JFP0N0G3LFO0M0G1HFGEG0G1IFN0M0HFK0G3GFGCM0L0G3GFG8L0G3GFG8L0L0GFGCN0G7GEL0K0G3GFO0G1GFL0K0G7GCP0G7GCK0J0G1GFQ0G1GEK0J0G3GCR0GFG8J0J0G7G8R0G3GCJ0J0GES0G1GEJ0I0G3GCT0GFJ0I0G3G8T0G7G8I0I0G7K0G1I0G8H0G4H0G3GCI0I0GEJ0G1GFH0GFGCG0G7GEH0G1GEI0H0G1GCJ0HFG0G7GFGCG1GFGEI0GEI0H0G3GCI0G1HFG0HFGCG7GFGEI0G7I0H0G3G8I0G7HFG3HFGDHFGEI0G3G8H0H0G7J0IFG7KFGEI0G3G8H0H0G7I0G1HFG8HFGCG7GFGEJ0G1GCH0H0GEI0G3GFGEG1HFG0G7GFG8J0G1GCH0H0GEI0G3GFG8G1GFGCG0GFGEL0GCH0H0GCI0G7GFG0G3GFG8G1GFGCL0GEH0G0G1GCI0GFGEG0G3GFG0G1GFG8L0G6H0G0G1G8I0GFGCG0G7GEG0G3GFM0G6H0G0G1G8I0GFGCG0G7GEG0G3GFM0G7H0G0G3G8H0G1GFG8G0GFGCG0G3GEM0G7H0G0G3G8H0G1GFG8G0GFGCG0G7GEM0G3H0G0G3G8H0G1GFH0GFG8G0G7GEM0G3H0G0G3G8H0G1G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I0G1H0G8G1G9G8G2G0G2H0H0G8X0G2H0:::H0YFGEH0,:::::::::^FS”;
作者:QQ 409259564
参考:https://github.com/Zebra/LinkOS-Android-Samples
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/11750.html