From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: problem with printer_write()
I am trying to use the printer functions. I could successfullly connect to
a printer on my network and print the example given in
printer_draw_rectangle() and print_draw_text()
But when I try to use printer_write() as below
<?
$handle = printer_open("printer");
printer_write($handle, "Text to print");
printer_close($handle);
?>
I was expecting "Text to Print" to be printed.
Instead it gave me the error message
Warning: couldn't allocate the printerjob in
c:\pathtohtdocs\test\print_1.php on line 3
line 3 corresponds to
printer_write($handle, "Text to print");
PLS NOTE THAT THE printer_open("printer") STATEMENT WAS UNALTERED WHILE
USING pinter_draw_tex() and printer_draw_rectangle() functions.
[EMAIL PROTECTED]
--rajesh.
--
Edit bug report at: http://bugs.php.net/?id=14174&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]