Forum Moderators: coopster

Message Too Old, No Replies

printer function problem?

         

hawkmaster

12:34 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



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

coopster

1:48 am on Aug 12, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Anything to do with Windows is a pain, hawkmaster. Have you searched the bug reports yet?