如何从Web应用程序打印到收据打印机? [英] How to print from web application to receipt printer?

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

问题描述

我的客户要求我在Epson TM U220上打印收据( http:/ / /pos.epson.com/products/TM-U220.htm )。我不知道该怎么做。是否有任何Java小程序或其他可用于打印的内容?我应该使用JasperReports吗? (JasperReports是否有助于解决这个问题?)
如果有Flash应用可以使用,我不反对使用它。

I was asked by my client to print receipts on an Epson TM U220 (http://pos.epson.com/products/TM-U220.htm) from my web application. I have no idea how to do that. Are there any java applets or something else that I can use for printing? Should i use JasperReports? (Does JasperReports help to cope with this problem?) If there are flash apps that could be used, I have no objection to using that.

我是使用Grails为我的网络应用程序。

I am using Grails for my web apps.

推荐答案

您不需要applet,可以使用任何Java库的grails控制器。在javax.print中使用运行时可用的Java打印服务。假设打印机安装在运行grails运行时的地方。

You don't need an applet, from a grails controller you may use any Java library. Use the Java printing services available to the runtime in javax.print. This is assuming that the printer is installed where the grails runtime is running.

这篇关于如何从Web应用程序打印到收据打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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