开发者

PHP batch print

开发者 https://www.devze.com 2023-04-08 19:30 出处:网络
Ι\'m working on a project where a user creates a number of contracts (stored in a MySQL database) and then n开发者_开发问答eeds to print them all at once on his printer. I can\'t think of a way to pe

Ι'm working on a project where a user creates a number of contracts (stored in a MySQL database) and then n开发者_开发问答eeds to print them all at once on his printer. I can't think of a way to perform this using PHP. I would like to simulate the browser printing process programatically for the number of contracts (ie, print contracts 1-50) in other words, how to print a large number of contracts at once without having to open each one on the browser and printing it from there.

Let me know if you need any further explanation. Thanks.


PHP is server-side, it has nothing to do with client-side printing. Rather use javascript's window.print . However you cannot set print properties, that's left for the user to decide.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号