|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Printer Functions
Hi, I am having problems with the printer functions, I have a touch screen pos system and it works very fine with receipt and ticket printers, now the problem I am having is getting it to work on a lan with 2 computer 4 printers, if I send information from A (server) to computer B (slave )which have a printer,
I am getting a printer error, Printer Information dose not leave computer A does not work: $handle = printer_open("DesktopCocina en Desktop"); works: $handle = printer_open("Cocina"); but printer shows a printing error message can anyone help me with this? Leslie Aguilera |
|
#2
|
|||
|
|||
|
RE: Printer Functions
I am trying to print on a WinXP network printer, this is my test code:
<php $printer="DESKTOPCocina"; $handle = printer_open($printer); if(!$handle || $handle == NULL) { die('Error connecting to Printer'); } else { printer_start_doc($handle, "My Document"); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, "xxxxxxxxxxxxxxxxxxxxxn"); } printer_end_doc($handle); printer_close($handle); ?> there is no out put to the network printer, the server printer (local) works fine but not the DESKTOP printer (network), I have tried all possible ways, Could you help me with a code sample that works? NOTE: if I run a DOS / DIR to the network printer it prints ok: dir > DesktopCocina the desktop printer prints the DIR data, so why can't I print with PHP printer function on the cliente side on my LAN? Thanks very much for your help, |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > Printer Functions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|