Home » PEAR » PEAR » Bug #1519
Printer hangs on second Print
Details
| Submitted | 2004-05-27 18:28 UTC |
|---|---|
| From | mmdrake at bctonline dot com |
| Status | Bogus |
| Package | PEAR |
| PHP Version | 4.3.3 |
| OS | Windows 98 |
| Roadmaps | (Not assigned) |
Comments
[2004-05-27 18:28 UTC] mmdrake at bctonline dot com
Description:
------------
Enviro: PHP-Gtk 1.0, to MySQL data; print using PHP printer commands (printer_draw_text, etc.). User accesses main screen and then prompt screen to select data and request print.
First report prints just fine. If they return to prompt screen and request new report WITHOUT leaving the main screen, report goes to printer, (icon in sys tray), but will not actually print. Hangs until user exits main Gtk screen, then report is released to printer.
NOTE: I posted this on regular PHP bug, and they said it belongs here. Hope they're right.
Reproduce code:
---------------
(Called inside PHP-Gtk)
$handle = printer_open("HCF Printer");
printer_start_doc($handle);
printer_start_page($handle);
while .... {
printer_draw_text($handle, $fileContent,$y,$x);
} //end while
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
unset($handle);
Expected result:
----------------
User should be able to print as many times as needed, instead of just once and then having to exit Gtk.
Actual result:
--------------
User can print only once, and then has to exit Gtk for report to actually reach printer.
[2004-07-08 17:24 UTC] mmdrake at bctonline dot com
Closing item. Believe problem to be hardware related; printers selected for testing all had scanners attached.