如何使用zpl QLn220打印机打印标签,它通过蓝牙连接到我的PC [英] How to print label using zpl QLn220 printer, it's connected to my PC via Bluetooth

查看:160
本文介绍了如何使用zpl QLn220打印机打印标签,它通过蓝牙连接到我的PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用zpl QLn220打印机打印标签,它通过蓝牙连接到我的电脑。我希望打印功能来自c#.Net



以下评论后的其他信息

谢谢。我试过了,最后在这里发了问题。实际上我的打印机通过蓝牙连接到我PC的COM3标准串口。我正在尝试使用以下代码打开该端口

 SerialPort sp =  new  SerialPort(); 
sp.PortName = COM4;
sp.BaudRate = 9600 ;
sp.Parity = Parity.None;
sp.DataBits = 8 ;
sp.StopBits = StopBits.One;
sp.Handshake = Handshake.RequestToSend;
sp.Open();



打开端口我收到以下错误

 给定的端口名称不是以COM / com开头,也不是解析为有效的串口。参数名称:portName



有人建议我更改端口号我从COM3更改为COM4仍然获得相同的版本。

解决方案

读取错误,您所提供的名称似乎与正确的格式不匹配,或者您的名称可能不存在系统。

查看这些链接,他们可能会有所帮助。

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v = VS.100)的.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames(V = VS.100)的.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.portname(v = vs.100).aspx [ ^ ]


Zpl打印机通过蓝牙连接到标准串行端口。我通过以下链接使用C#中的ZPL打印机打印标签和条形码来解决这个问题达网络

How to print label using zpl QLn220 printer, it's connected to my PC via Bluetooth. I want print function from c#.Net

additional information after comment below
Thanks. I tried and Finally posted question here. Actually my printer is connected via Bluetooth to COM3 standard serial port of my PC. I am trying to open that port using following code

SerialPort sp = new SerialPort();
sp.PortName = "COM4";
sp.BaudRate = 9600;
sp.Parity = Parity.None;
sp.DataBits = 8;
sp.StopBits = StopBits.One;
sp.Handshake = Handshake.RequestToSend;
sp.Open();


while opening the port I am getting following error

"The given port name does not start with COM/com or does not resolve to a valid serial port.Parameter name: portName"


Some people suggested me to change port number I changed from COM3 to COM4 still getting same eeror.

解决方案

Reading the error it seems the name you are giving is not matching the correct format or maybe not existant in your system.
Have a look to these links, they might help.
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.100).aspx[^]
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames(v=vs.100).aspx[^]
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.portname(v=vs.100).aspx[^]


The Zpl printer was connected to Standard Serial port via Bluetooth. I solved it by following this link Printing label and Barcodes using ZPL printer from C#.Net


这篇关于如何使用zpl QLn220打印机打印标签,它通过蓝牙连接到我的PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆