简体   繁体   English

Windows Mobile-Zebra打印机mz220

[英]Windows mobile - Zebra Printer mz220

I am printing to a Zebra printer mz220 via bluetooth from a windows mobile 6 device. 我正在从Windows Mobile 6设备通过蓝牙打印到Zebra打印机mz220。 The printing works fine to a point. 打印工作到一定程度。 After this point the printer pauses and then adds a new line before continuing with it's printing. 此后,打印机暂停,然后添加新行,然后继续打印。 This is far from ideal as the pause and new line can happen part way through printing a line that should not have a new line. 这远非理想,因为暂停和新行可能会在打印不应包含新行的行的一部分过程中发生。

I am using the SerialPort class in .net and I have added a thread.sleep(1000) to allow time for all the data that should be printed to get printed. 我在.net中使用SerialPort类,并且添加了thread.sleep(1000)来允许所有应该打印的数据有时间打印。 This fixed an earlier problem where some of the data on long receipts was not being printed. 这解决了一个较早的问题,即长期发票上的某些数据没有打印出来。

                using (var serialPort = new SerialPort())
            {
                serialPort.PortName = this.PortName;
                serialPort.Open();
                Thread.Sleep(2500);

                serialPort.Write(text);
            }

Any ideas why this might be happening and how to go about solving this issue. 为什么会发生这种情况以及如何解决这个问题的任何想法。

Thanks 谢谢

Are you printing in line mode, or is this a CPCL format? 您是在行模式下打印还是CPCL格式? Are you using continuous media, or label/gap media? 您使用的是连续介质还是标签/间隙介质? Your printer could be incorrectly configured to think it is printing a label (which has gaps in the media) and is skipping over where it thinks the gap is. 您的打印机可能配置不正确,以为它正在打印标签(在介质中有缝隙),并且跳过了它认为存在缝隙的位置。 Look at the: 看着那(这:

! U1 getvar "media.type" 

SGD, it should be set to journal if you are using receipt paper and not labels. SGD,如果您使用收据纸而不是标签,则应将其设置为日记帐。

! U1 setvar "media.type" "journal"

事实证明,我要做的就是安装Zebra打印机SDK,并针对SDK中提供的串行端口类重新编写代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM