使用PHP进行批量/大量打印 [英] Bulk / Mass Printing using PHP

查看:68
本文介绍了使用PHP进行批量/大量打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一次打印多个直接打印到打印机的报告。



如果有人知道最好的方法,请告诉我。



谢谢。

I need to print multiple reports at once that is in bulk directly to printer using php.

If any one know best way of doing it kindly let me know.

Thanks.

推荐答案

HTML格式不适合您的场景,所以如果我是你,然后我会做以下事情:



1.尝试以某种方式将html报告转换为PDF(http://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-php [<一个href =http://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-phptarget =_ blanktitle =新窗口> ^ ]) />


2.然后将PDF文件打印到客户端打印机,尝试在PDF文件中嵌入javascript(http://fpdf.de/downloads/addons/36/ [ ^ ])Adobe Reader支持直接打印它。如果你无法使它工作,那么你可以尝试这个 http://goo.gl/dVVfH3 [ ^ ]
HTML format is not suitable for your scenario so if I were you, then I'd do the following:

1. Try to convert the html reports to PDF somehow (http://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-php[^])

2. Then to print the PDF file to client printer, try to embed javascript in the PDF file itself (http://fpdf.de/downloads/addons/36/[^]) which is supported by Adobe Reader to directly print it. If you cannot get it working, then you could try this http://goo.gl/dVVfH3[^]


这篇关于使用PHP进行批量/大量打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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