开发用于渲染 Zebra 打印机 (105 SL) ZPL 代码的实用程序
我开始在 .NET 4.0 上为 Zebra Printer 105SL 开发一个实用程序。也许有人知道这些设备。
我有一些问题:
我刚刚开始学习 ZPL 代码。是否存在一些渲染实用程序 Zebra 打印机代码 (ZPL)?例如,输入是 ZPL 代码,输出是一些标签图像。
是否存在渲染库 ZPL 代码?输入是 ZPL 代码,输出是一些图像。
现在,仅当计算机本地安装了 Zebra 打印机时,我才可以在 Zebra 打印机上进行打印。因此下一步是仅了解 Zebra 打印机的IP 地址。 Zebra 打印机不会安装在用户将使用我的实用程序的计算机上。我需要找到一种通过 IP 地址将数据(打印)发送到 Zebra 打印机的方法。
也许我有很多愚蠢的问题,但感谢所有帮助我的人。
Possible Duplicate:
Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer
I start developing an utility on .NET 4.0 for Zebra Printer 105SL. Maybe someone know these devices.
I have some questions:
I've just started learning ZPL code. Does it exist some utility for rendering Zebra printer code (ZPL)? For example input is ZPL code and output is some label image.
Does it exist a library for rendering ZPL code? Input is ZPL code output is some image.
Now I can print on Zebra printer only if Zebra printer is installed localy on computer. So next step is to know only IP adresses of Zebra printer. Zebra printer will not be installed on computer on which the user will use my utility. I need to find a way to send data (print) to Zebra printer by IP adress.
Maybe I have many stupid questions but thanks for everybody who will help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这不是完全相同的问题,但这个答案似乎就是您想要的?
将数据发送到热敏打印机
This isn't exactly the same question, but this answer seems to be what you want?
Send data to thermal printer
就像乔治所说,这个问题解决了发送问题ZPL 到打印机。
将 ZPL 发送到网络打印机应该没有问题,只需使用网络打印机名称即可。
对于图像,它们需要采用 PCX 格式。首先将 PCX 文件发送到打印机(使用与发送其他 ZPL 命令相同的方法),然后发送引用打印机内存中的图像的 ZPL。通过在 Zebra Designer 并查看它生成的 ZPL(在打印机对话框中选中打印到文件)。
Like George said, this question addresses sending ZPL to a printer.
Sending ZPL to a network printer should be no problem, just use the network printer name.
For images, they need to be in PCX format. You first send the PCX file to the printer (using the same method that you send other ZPL commands), then you send the ZPL referencing the image in the printer's memory. It's easier to get a grasp on how this is done by generating a label with a picture in Zebra Designer and looking at the ZPL it generates (check Print to File in the printer dialog).
对于你的第二个问题,没有可用的库。 ZPL 是一种专有语言,Zebra 不提供将 ZPL 转换为映像的库。但是,有一种方法可以使用打印机的网页(适用于某些打印机)执行类似的操作。
单击打印机的目录列表部分,然后单击“创建新脚本”。
您可以在此处输入 ZPL,然后选择“预览标签”,这将显示标签的外观
For your second question, there is no library for this. ZPL is a proprietary language and Zebra doesn't offer libraries to turn ZPL into an image. There is, however, a way to do something like this with the printer's web page (available for some printers).
Click on the Directory Listing section of the printer, then click on "Create New Script".
Here you can type in ZPL and then choose "Preview Label" and that should show you what the label will look like