Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-14-2007, 03:00 PM #1
- Join Date
- Apr 2006
- Thanked 0 Times in 0 Posts
php_printer.dll & functions help?
While the following does appear to "open" the desired printer
(Click to Convert II PDF conversion utility on WAMP5 stack)
and clicking the "Create" button (print) in the utility's poped-up control
panel does appear to send something to the print spooler, nothing "prints"
(no PDF documents are generated). The utility then appears to close itself,
only to reload/open - ad infinitum... caught in an endless loop until I either shut
down the system, or end all suspect tasks from task manager.
(haven't pinpointed which task -- specifically -- yet;-)
Click "Create", popup closes -- wait 2 seconds popup re-opens.
Click "Cancel", popup closes -- wait 2 seconds popup re-opens. REPEAT!
$list_printers = printer_list(PRINTER_ENUM_LOCAL |
$this_printer = $list_printers["NAME"];
echo $this_printer; //echos Click To Convert II
$my_printer = printer_open($this_printer);
printer_set_option($my_printer, PRINTER_MODE, "RAW");
printer_write($my_printer, "Some Text to Print");