Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Nie działa drukowanie spod PHP, błąd: couldn't allocate the printerjob [1804]
nitro18
post
Post #1





Grupa: Zarejestrowani
Postów: 311
Pomógł: 7
Dołączył: 2.08.2006
Skąd: Bystrzyca Kłodzka/Nysa

Ostrzeżenie: (10%)
X----


Mam kod:

  1. <?php
  2. $print = printer_open();
  3. printer_write($print, "Test druku");
  4. printer_close($print);
  5. ?>


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)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
webdice
post
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);


Cytat(sniezny_wilk @ 5.06.2008, 14:14:06 ) *
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.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 04:50