如何打印收据通过web页面(的.aspx)票据打印机? [英] How to print a receipt through Receipt Printer from Web Page(.aspx)?
问题描述
添加IFrame的网页和放大器上;给定的源文本file.It工作正常上常见printer.But,无法打印收据收据通过被printer.It为即将到来空白纸张。
Added IFrame on web page & given source as text file.It is working fine on Common printer.But,unable to print receipt through Receipt printer.It is coming as blank paper.
打印机名称: PR-85热敏打印机。点击下面链接查看打印机的详细规格。
Printer name : PR-85 Thermal printer .Click below link to see printer specification details..
http://www.essae.com/popup_html/pr-85.html
任何人有解决办法吗?
推荐答案
要得到这个工作,只需设置您的收据打印机设置为默认打印机并将其重命名为斑马
To get this working, simply setup your receipt printer as the default printer and rename it as "zebra":
然后,只需下载 jZebra 库,把jar文件在项目目录哎preSTO:
Then simply download the jZebra library, put the jar file in the project directory and hey presto:
<input type=button onClick="print()" value="Print">
<applet name="jzebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100">
<param name="printer" value="zebra">
</applet>
<script>
function print() {
document.jzebra.append("PRINTED USING JZEBRA\n");
document.jzebra.print();
}
</script>
这篇关于如何打印收据通过web页面(的.aspx)票据打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!