我正在尝试在连续纸上打印一些长度可变的优惠券。问题是打印机拒绝打印超过2300点(大约26厘米或10.4英寸)的任何东西,只是假装它不在那里。非常轻的代码会触发问题,因此它不是缓冲区问题。打印机还设法读取“打印”命令,并且所有行的格式完全相同,因此它也不是格式化问题。这里有一个不太简单但几乎代表我的观点的代码示例:
N //clear buffer
Q10,0 //set paper to continuous mode with 10 points between documents
R0,0 //set reference point
ZT //print from top to bottom
A100,50,0,1,1,2,N,"ASDFQWERTY 50"
A100,100,0,1,1,2,N,"ASDFQWERTY 100"
A100,150,0,1,1,2,N,"ASDFQWERTY 150"
A100,200,0,1,1,2,N,"ASDFQWERTY 200"
A100,250,0,1,1,2,N,"ASDFQWERTY 250"
A100,300,0,1,1,2,N,"ASDFQWERTY 300"
A100,350,0,1,1,2,N,"ASDFQWERTY 350"
A100,400,0,1,1,2,N,"ASDFQWERTY 400"
A100,450,0,1,1,2,N,"ASDFQWERTY 450"
A100,500,0,1,1,2,N,"ASDFQWERTY 500"
A100,550,0,1,1,2,N,"ASDFQWERTY 550"
A100,600,0,1,1,2,N,"ASDFQWERTY 600"
A100,650,0,1,1,2,N,"ASDFQWERTY 650"
A100,700,0,1,1,2,N,"ASDFQWERTY 700"
A100,750,0,1,1,2,N,"ASDFQWERTY 750"
A100,800,0,1,1,2,N,"ASDFQWERTY 800"
A100,850,0,1,1,2,N,"ASDFQWERTY 850"
A100,900,0,1,1,2,N,"ASDFQWERTY 900"
A100,950,0,1,1,2,N,"ASDFQWERTY 950"
A100,1000,0,1,1,2,N,"ASDFQWERTY 1000"
A100,1050,0,1,1,2,N,"ASDFQWERTY 1050"
A100,1100,0,1,1,2,N,"ASDFQWERTY 1100"
A100,1150,0,1,1,2,N,"ASDFQWERTY 1150"
A100,1200,0,1,1,2,N,"ASDFQWERTY 1200"
A100,1250,0,1,1,2,N,"ASDFQWERTY 1250"
A100,1300,0,1,1,2,N,"ASDFQWERTY 1300"
A100,1350,0,1,1,2,N,"ASDFQWERTY 1350"
A100,1400,0,1,1,2,N,"ASDFQWERTY 1400"
A100,1450,0,1,1,2,N,"ASDFQWERTY 1450"
A100,1500,0,1,1,2,N,"ASDFQWERTY 1500"
A100,1550,0,1,1,2,N,"ASDFQWERTY 1550"
A100,1600,0,1,1,2,N,"ASDFQWERTY 1600"
A100,1650,0,1,1,2,N,"ASDFQWERTY 1650"
A100,1700,0,1,1,2,N,"ASDFQWERTY 1700"
A100,1750,0,1,1,2,N,"ASDFQWERTY 1750"
A100,1800,0,1,1,2,N,"ASDFQWERTY 1800"
A100,1850,0,1,1,2,N,"ASDFQWERTY 1850"
A100,1900,0,1,1,2,N,"ASDFQWERTY 1900"
A100,1950,0,1,1,2,N,"ASDFQWERTY 1950"
A100,2000,0,1,1,2,N,"ASDFQWERTY 2000"
A100,2050,0,1,1,2,N,"ASDFQWERTY 2050"
A100,2100,0,1,1,2,N,"ASDFQWERTY 2100"
A100,2150,0,1,1,2,N,"ASDFQWERTY 2150"
A100,2200,0,1,1,2,N,"ASDFQWERTY 2200"
A100,2250,0,1,1,2,N,"ASDFQWERTY 2250"
A100,2300,0,1,1,2,N,"ASDFQWERTY 2300"
A100,2350,0,1,1,2,N,"ASDFQWERTY 2350"
A100,2400,0,1,1,2,N,"ASDFQWERTY 2400"
A100,2450,0,1,1,2,N,"ASDFQWERTY 2450"
A100,2500,0,1,1,2,N,"ASDFQWERTY 2500"
A100,2550,0,1,1,2,N,"ASDFQWERTY 2550"
A100,2600,0,1,1,2,N,"ASDFQWERTY 2600"
A100,2650,0,1,1,2,N,"ASDFQWERTY 2650"
A100,2700,0,1,1,2,N,"ASDFQWERTY 2700"
A100,2750,0,1,1,2,N,"ASDFQWERTY 2750"
A100,2800,0,1,1,2,N,"ASDFQWERTY 2800"
A100,2850,0,1,1,2,N,"ASDFQWERTY 2850"
A100,2900,0,1,1,2,N,"ASDFQWERTY 2900"
A100,2950,0,1,1,2,N,"ASDFQWERTY 2950"
A100,3000,0,1,1,2,N,"ASDFQWERTY 3000"
P1
在第一个“N”之前有一个空行,如EPL2手册中所述(http://www.zebra.com/content/dam/zebra/manuals/en-us/printer/epl2-pm-en .PDF)。将命令发送到打印机时,我也不包含注释。但是,这只会打印到“ASDFQWERTY 2300”的行,并忽略除此之外的所有内容。任何帮助都非常感激。
答案 0 :(得分:2)
从我从公司获得的支持电子邮件中回答自己。此打印机型号限制为11英寸,因此最后我不得不将文档拆分为多个请求。