开发者

Printing without opening print dialog in php

Hai Guys, I have to print a 开发者_高级运维page in php but i dont want to use window.print ..... I have to print without opening the print dialog box... I am using php.....


PHP is a server side language, and therefore it can only affect actions at the server. Printing is a client-side action and so PHP can't help you out. Javascript is what you're talking about with window.print() and as far as I know, that's the only programmatic way to print from the browser.


You can do this in firefox. Just search for

user_pref("print.always_print_silent",true);
user_pref("print.show_print_progress",false);

I am also looking for a way to do it in opera....


Pandiya,

The answer you looking for is: No, there is no existing solution that allows you to trigger print event without user input (via prompting print dialog).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜