How to print a receipt through Receipt Printer fro

2019-01-22 00:12发布

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.

Printer name : PR-85 Thermal printer .Click below link to see printer specification details..

http://www.essae.com/popup_html/pr-85.html

Anybody have solution ?

enter image description here

1条回答
一夜七次
2楼-- · 2019-01-22 00:51

To get this working, simply setup your receipt printer as the default printer and rename it as "zebra":

enter image description here

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>

enter image description here

查看更多
登录 后发表回答