打印到默认 Windows 打印机 Zebra 打印机
我已将 Zebra 打印机定义为 Windows 7 计算机上的默认打印机。 我有我想要打印的 ZPL 代码:
"^XA^LH30,30^FO20,10^AFN,56,30^FDqwewer^FS^FO20,80,^B3N,Y,20,N,N^FD213004^FS^XZ"
您能给我推荐一些示例,如何将其发送到某些默认打印机吗? 当然,我还想打印条形码。谢谢。
I have defined a Zebra printer as a default printer on my Windows 7 machine.
I have my ZPL code that I want to print:
"^XA^LH30,30^FO20,10^AFN,56,30^FDqwewer^FS^FO20,80,^B3N,Y,20,N,N^FD213004^FS^XZ"
Can you refer me to some example how I can send this thing to some default printer?
And of course I want to print also the barcode. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经很长时间没有看过它了,但我保留了 这篇文章。我想它可以帮助您朝正确的方向发展。
我决定使用 NeoDynamic 的 ThermalLabel SDK for .NET,而不是自己处理所有事情...
I haven't looked at it for a long time but I kept a link to this article. I imagine that it could help you in the right direction.
I decided to use ThermalLabel SDK for .NET from NeoDynamic instead of handling everything myself...
如果您进入 Zebra 打印机驱动程序的“高级设置”选项卡,则可以“启用直通模式”。然后,只需确保您的流以
${
开头并以}$
结尾,那么驱动程序将不会对${
之间的内容执行任何操作>}$
应如下所示:
If you go to the "Advanced Setup" tab of the Zebra printer driver, you can "Enable Passthrough Mode". Then, just ensure that your stream starts with
${
and ends with}$
Then the driver will not do anything to the stuff inbetween the${
}$
should look like this:
这种方法对我使用 TLP2844 有效:如何使用 Visual C# .NET 将原始数据发送到打印机。
This approach worked for me with a TLP2844: How to send raw data to a printer by using Visual C# .NET.