php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14174 problem with printer_write()
Submitted: 2001-11-22 07:07 UTC Modified: 2002-06-15 09:36 UTC
From: ro_1010 at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0.6 OS: Windows 98
Private report: No CVE-ID: None
 [2001-11-22 07:07 UTC] ro_1010 at yahoo dot com
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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-15 09:36 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 14:01:35 2024 UTC