Hi all,
after a long time of testing and searching for a solution, I need your help
I try to print from PHP 5.01 and Win XP (or Win2K) to a printer.
I can print one copy (set)
But I cannot set any option with "printer_set_option"
I tries to set the Copies or Scale but the printer does not react.
My testing code:
-------------------------------------------------
$handle = printer_open($printer);
printer_start_doc($handle, "Test");
printer_start_page($handle);
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_set_option($handle, PRINTER_SCALE, 50);
printer_set_option($handle, PRINTER_COPIES, 3);
printer_write($handle, "Testprint Testprint");
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
---------------------------------------------
Has anybody has experience with the printer functions?
regards
hawk