Depends on how your overall network is configured. If the server on which PHP is running is on the same internal network as the printer, then the short answer is yes--the way you implement it depends on which OS your system is running. If PHP is running on Windows, there is a subset of printing functions (incidentally, my magazine had an article about that two months ago, see http://www.phparch.com/issue.php?mid=14). If it's running on Unix, then you can output PostScript code (or a PDF) directly to your printing queue.

If your server is not on the same network, then you have at least two choices. Either use strict CSS formatting to make the browser create a printable output (good luck :-) ), or use PDF, which is much safer, although a little more complicated than plain HTML.

Cheers,


Marco


--------------------------

php|architect - The Magazine for PHP Professionals
Try us free at http://www.phparch.com!

Complete searchable PHP mailing list archives at http://www.phparch.com/mailinglists

Peter Goggin wrote:
Is it possible to have a php  a script that will run on my server but let me
print to my client network printer?

What I am doing is using php to generate html for a report from a data base
which is displayed on the clients screen.  I would like to offer the client
the option of printing this report on their local printer .

If  php will not support access to a client printer is there any way of
embedding a Form Feed in the display so that if the screen report is printed
than the data will be correctly paginated?


Regards


Peter Goggin





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/03


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to