donglei1973 2012-04-19 14:31
浏览 48

如何从PHP Web应用程序打印到点阵打印机?

I created a web application in PHP.

The application should print a receipt in a dot matrix printer (Epson LQ300).

The receipt layout is customized and the paper is punched.

Right now I created a pdf with custom paper size, but the user should do 3 click to finally print the receipt, wich has some paper feeds errors.

So I want to let the user click on printer icon of the receipt and the next thing happens is the receipt being printed.

Let's asume that the priter is only one, localy, and default, so I first need to avoid select printer dialog.

  1. How to do that from a PDF reader?

Asuming that I change the approach and use only HTML, and forget about PDF:

  1. How to control the exact position of the fields ?
  2. How how to avoid "Select Prnter Dialog"?
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 BV260Y用MQTT向阿里云发布主题消息一直错误
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)