javascript - Is there a way to print a string directly to printer without using the "Print Dialog Box" and possibly without other extensions? -


// using php or javascript

$string = "this string" $print_to_printer($string);  function $print_to_printer($string){ // method print directly printer; } 

php server side language, , therefore can affect actions @ server. printing client-side action , php can't out. javascript you're talking window.print() , far know, that's programmatic way print browser.

so, there no existing solution allows trigger print event without user input (via prompting print dialog).


Comments