#26346 [Com]: Cannot output to a shared printer

From: Date: Tue, 09 Aug 2005 20:16:04 +0000
Subject: #26346 [Com]: Cannot output to a shared printer
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2735@lists.php.net to get a copy of this message
ID: 26346 Comment by: spilon at groupehytech dot com Reported By: rich at dwell dot co dot uk Status: Open Bug Type: PECL related Operating System: Windows 2003 PHP Version: 4.3.4 New Comment: I tried this, but i can't change my printer port, even if I install the drivers locally... If I use the printer_write() function, I can see text , but the thing is, I would like to print with a preset page setup. Previous Comments: ------------------------------------------------------------------------ [2005-07-29 21:24:13] jerry dot martin at gmail dot com Try installing the network printers as local printers. You can do so by setting up the port as local. I did it here at work because I was having the same problems with network printers, but works fine when you setup the printer as local. ------------------------------------------------------------------------ [2005-07-29 20:15:20] spilon at groupehytech dot com Hi, I run a basic wamp with windows xp and I can't print on a network printer... BUT I can print with my local printer !!! Later I tried to print with my real web server with the linux server and the same thing happened ! Shit I can't sleep 'until I found the bug. Please can someone help me, I'm in a real pickle. ------------------------------------------------------------------------ [2005-01-13 15:08:37] esteban_mate at yahoo dot com dot ar I'm working with php_printer.dll. I install Apache, php and mysql on XP and i want to print on a shared printer on another computer (a WIN98), i have the same drivers in both computers but i get this error when i try to print to it Warning: couldn't allocate new printer job on... Some people said that it's a possible conflict with permissions. i look inside the code of php_printer on http://home.no.net/wsaebo/php-4.0.6/ext/printer/printer.c the problem is with startdoc, but i don't know why Esteban Robles ------------------------------------------------------------------------ [2004-09-24 06:44:52] liviu dot dospinescu at rdslink dot ro There is a problem with php_printer.dll I have made all the changes in php.ini, but launching Winows XP, there is a "WARNING" mesaj like this: "Unknown(): Unable to load dynamic library 'C:\php\extensions'(the location of library) - The specific module could not be found"! Please, help me!! I am working under Windows XP Prof. with php4.3.8. ------------------------------------------------------------------------ [2004-07-23 18:11:18] pete at downplay dot co dot uk I have a slightly different problem (although I am able to recreate the problem you have). PHP/Apache/MySQL is running on a Win2003 server computer. The label printer is running on an XP machine on the network. I have installed the drivers locally on the Apache machine, so Windows should handle the network communication. When I print the document from PHP as follows : printer_start_doc($print); printer_start_page($print); $font = printer_create_font("Tahoma",($h*0.6),($h*0.6*0.8),400,false,false,false,0); printer_select_font($print, $font); printer_draw_text($print, $pname, 0, $h*0.5); printer_draw_text($print, $punits, 0, $h*1.25); printer_draw_text($print, $ser, 0, $h*2); printer_delete_font($font); printer_end_page($print); printer_end_doc($print); The document goes to the printer queue, but does not print. Instead the Status column changes from "Printing" to "Printing - Error" and gives me no further indication as to what the problem with. I have tried printing from Notepad on the Apache server, and it prints fine. I've also tried printing to a different printer in PHP, and the same error happens. I am guessing that php_printer.dll is incompatible with Win 2003. I've tried the solution suggested by basurto at canada dot com, and it made no difference. The second parameter appears in the Document Name column of the print queue with no problems in any case. If anyone has a fix or workaround, I would be most grateful! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26346 -- Edit this bug report at http://bugs.php.net/?id=26346&edit=1

« previous php.pecl.dev (#2735) next »