如何从网页打印到标签打印机? [英] How can I print to a label printer from a web page

查看:780
本文介绍了如何从网页打印到标签打印机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个电子商务的网络应用程序,我想知道如何将打印机打印到标签打印机的后端的东西。

我有两个问题1)我不能从一个正常的网页直接打印到打印机(我认为是一个zedbra LP2844)它只是抛出垃圾



2)我希望能够在标签打印机上打印标签,但所有其他打印(例如发票)都将打印到默认打印机 - 激光,因此需要选择正确的打印机这一切都将发生在一个固定的位置,所以我可以坚持,例如使用Firefox与一个特定的(自定义?)插件安装(已经使用Firefox,所以这将是一个整洁方式)

有没有人知道这是可能的,是一个可能和/或好的方式做到这一点的Firefox扩展?



任何人都可以写ff插件吗?

我会认为这肯定是在做之前完成的,但在google上找不到任何东西

感谢您的帮助
$ b $ Dave
<解决方案

感谢您的意见的人,我实际上已经想出了一个不同的解决方案,从不同的角度来解决问题,因为选择正确的打印机可能永远是一个问题

目前我们有一个windows程序,我们输入订单号码,然后绘制一个标签并打印出来,但是它不漂亮并且正在变化做的布局是困难的,但比任何我想从网页打印能力$ / b>

所以我计划是这样的 -



更新程序,使其位于后台,并轮询数据库以获取要打印的订单列表,对于每个发现的订单,请求来自服务器的图像和pr将图片添加到标签中



在服务器上,使用ASPJpeg快速创建图像,这使我可以完全控制标签的外观。
$ b

在web应用程序中,我有一个要打印的命令按钮,这会将命令添加到打印表中...然后我可以有一个打印表的界面,显示什么等待打印,什么打印等,我可以清除打印队列或从它删除单个项目,就像它是Windows打印队列



唯一的问题,我很担心关于投票往往是足够的,工作人员不等待标签打印,而不是太频繁轮询,太多的带宽被用完了



我可能会这样做,以便当他们打印发送标签打印,或其他一些现有的功能绑定到订单处理

I have an e-commerce web application and I'd some how like to make that print to a label printer for the back end stuff

I have two questions

1) I can't print from a normal webpage straight to the printer (A zedbra LP2844 i think) it just throws out junk

2) I want to be able to print labels to the label printer, but all other printing, such as invoices would go to the default printer - a laser, so need someway of selecting the right printer

It will all happen at a fixed location, so I can insist on for example using Firefox with a specific (custom?) plugin installed (already using firefox so this would be a neat way)

Does anybody know if this is possible, is a firefox extention a possible and/or good way of doing this?

Anybody out there that can write ff plugins?

I would presume this must have been done before surely, but cannot find anything on google

Thanks for any help

Dave

解决方案

Thanks for your comments people, I've actually come up with a different solution which comes at the problem from a different angle as selecting the correct printer would likely always be an issue

At the moment we have a windows program that we enter the order number into, it then draws a label and prints it out, but its not pretty and getting changes done to the layout is difficult but more than anything I want the ability to print from the webpage

So what I'm planning is this -

Update the program so it sits in the background and polls the database for a list of orders to be printed, for each order it finds, request an image from the server and print that image to the label

On the server, an image is created on the fly using ASPJpeg which gives me full control over how the label looks

From the webapp, I then have a button on the order to print, this adds the order to a print table... I can then have an interface to the print table which shows whats waiting to print, whats been printed etc, and I can clear the print queue or delete individual items from it just as if it were the windows print queue

Only problem I'm worried about is polling often enough that staff aren't waiting for labels to print and not polling too often that too much bandwidth is being used up

I might make it so that when they hit despatch it sends the label to be printed, or some other existing function that ties into the order process

这篇关于如何从网页打印到标签打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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