Jump to content

[SOLVED] printer_write() problem


vmavrou

Recommended Posts

Hi,

i have this problem.

I want to use the printer_write function.

everywhere i see this :

$handle = printer_open(?????);

printer_write($handle, "Text to print");

printer_close($handle);

?>

and at the ????? you put your printer.

 

Because i'm making a page that i want the when the user wants to print some variables i want to use something so that it will start the printing at the default printer of every user. Not one only specified.

 

Any ideas?

Thank you in advance

Link to comment
https://forums.phpfreaks.com/topic/140539-solved-printer_write-problem/
Share on other sites

as dennismonsewicz points out, you can use JavaScripts

window.print();

which will bring up the printer dialog box. there is no way (with a webpage) to FORCE the users printer to start doing something...that would be a huge security violation

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.