PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 21st, 2007, 11:10 PM
novenobit novenobit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cracas, Venezuela
Posts: 5 novenobit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to novenobit
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

Reply With Quote
  #2  
Old February 23rd, 2007, 01:58 AM
novenobit novenobit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cracas, Venezuela
Posts: 5 novenobit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to novenobit
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,

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Printer Functions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway