![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 311 Pomógł: 7 Dołączył: 2.08.2006 Skąd: Bystrzyca Kłodzka/Nysa Ostrzeżenie: (10%) ![]() ![]() |
Mam kod:
I wyskakuje mi błąd: Warning: printer_write() [function.printer-write]: couldn't allocate the printerjob [1804] in D:\serwer\htdocs\print.php on line 3 To ja nie wiem o co chodzi (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Drukarka podłączona... nie wiem czemu nie wysyła do drukarki Drukarka: Lexmark X3450 (Lexmark X3400 Series) |
|
|
![]() |
![]()
Post
#2
|
|
Developer Grupa: Moderatorzy Postów: 3 045 Pomógł: 290 Dołączył: 20.01.2007 ![]() |
Drugi komentarz w manualu, może to Ci pomoże:
Cytat couldn't allocate the printerjob [1804] - error on windows 2000 I was printing in several places in one module, and kept getting this error after just two printer_write()'s. It was solved by printing everything into a buffer first, then calling printer_write() just once. EX: $_SESSION['PrintBuffer']=''; //printer buffer print_sub_1(); print_sub_2(); print_sub_3(); $handle=printer_open("EPSON TM-T88III Receipt"); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, $_SESSION['PrintBuffer']); //print $_SESSION['PrintBuffer']; //for testing printer_close($handle); Aha (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Moim zdaniem to jest brak biblioteki, lub niezgodności biblioteki z systemem. Jakby brakowało biblioteki, to wyskoczyłby błąd o braku danej funkcji. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 04:50 |