Page 1 of 1

Printing to a printer directly

Posted: Wed Aug 01, 2007 4:25 pm
by sanju_76
Hello,

I have a requirement where I have to print to a printer directly, it is more or less like a print job where I have to send a bunch of generated documents to a printer instead of the browser.

Any clues is highly appreciated.

Thanks,
Sanjay

Posted: Wed Aug 01, 2007 4:41 pm
by smudge
Are you trying to print to the client's printer or the server's printer?

Posted: Wed Aug 01, 2007 5:24 pm
by nathanr
if it's clientside, the closest you can get is using something like scriptX
if it's serverside printer or on the same network you'll need to interface with the printer through a socket and send the output to it.. (not the smallest job)

Posted: Wed Aug 01, 2007 5:47 pm
by feyd
nathanr wrote:if it's clientside, the closest you can get is using something like scriptX
A PDF would work better.

Posted: Wed Aug 01, 2007 6:05 pm
by nathanr
feyd wrote:
nathanr wrote:if it's clientside, the closest you can get is using something like scriptX
A PDF would work better.
agreed, and if it can't be pdf'd (like a stream of shipping labels to a custom printer) its probably outside of the scope of php and would require a custom client application or object.

Posted: Wed Aug 01, 2007 8:49 pm
by sanju_76
smudge wrote:Are you trying to print to the client's printer or the server's printer?
Clients printer..

Thanks for all the replies..

Sanjay.

what about somekind of ftp to printer utility

Posted: Wed Aug 01, 2007 11:07 pm
by yacahuma
what about somekind of ftp to printer utility. You could use a printer with an ftp server or a utility that receives documents through ftp and the print them.

Check PHP archtect magazine

Posted: Thu Aug 02, 2007 9:58 am
by yacahuma
You are in luck. Check the phparchitect magazine 2007-06 There is a full article on printing from PHP

I will suggest any php programmer to subscribe to this magazine.

http://www.phparch.com