|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-15 09:36 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
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. ro_1010@yahoo.com --rajesh.