Re: [PHP] printing from php

2005-10-29 Thread Richard Lynch
On Fri, October 28, 2005 6:17 am, Tom Cruickshank wrote:
>  I've been reading up on printing out documents using PHP (using
> Printer
> functions calls in the php manual)
>
> I'm using a Linux and/or FreeBSD operating system to run my php code
> on (in
> apache). However, I am surfing these pages using a Windows XP machine.
>
> Has anyone ever tried having a print button (or link) in php that
> would make
> Whatever page is being displayed being printed with the above
> scenario?
>
> How might you of gone about it to make it work? (the Linux or FreeBSD
> box is
> not configured to have a printer on it, shared or local, does that
> make a
> difference? )

If you are trying to get the print-out on a printer tied to the
server, PHP is maybe going to be involved.

If you want it printed to a printer tied to the client (browser) PHP
is long-gone and has nothing to do with it by the time you click on
"Print" button.

There are a bunch of JavaScript "print" buttons/links/scripts you can
find with Google to help.

If you need your HTML to be made printer-friendly BEFORE you print it,
PHP and http://php.net/pdflib may help.  Or is it
http://php.net/libpdf? I can never remember.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] printing from php

2005-10-28 Thread Jochem Maas

don't post a new question to an existing thread - it lessens your exposure!

Tom Cruickshank wrote:

Hello,
 I've been reading up on printing out documents using PHP (using Printer
functions calls in the php manual)

I'm using a Linux and/or FreeBSD operating system to run my php code on (in
apache). However, I am surfing these pages using a Windows XP machine.

Has anyone ever tried having a print button (or link) in php that would make
Whatever page is being displayed being printed with the above scenario?

How might you of gone about it to make it work? (the Linux or FreeBSD box is
not configured to have a printer on it, shared or local, does that make a
difference? )


either you let the client (browser) print the page - this has nothing to do with
php OR you let the server print 'something' (based on a specific request from 
the user
- i.e. he clicked on 'print' link or something) in which case you will _need_
to have access to a printer from the server (i.e. it needs to have a printer 
configured)

basically if the server 'has' no printer it can't print.



Would appreciate any feedback. Thanks!

Tom




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



[PHP] printing from php

2005-10-28 Thread Tom Cruickshank
Hello,
 I've been reading up on printing out documents using PHP (using Printer
functions calls in the php manual)

I'm using a Linux and/or FreeBSD operating system to run my php code on (in
apache). However, I am surfing these pages using a Windows XP machine.

Has anyone ever tried having a print button (or link) in php that would make
Whatever page is being displayed being printed with the above scenario?

How might you of gone about it to make it work? (the Linux or FreeBSD box is
not configured to have a printer on it, shared or local, does that make a
difference? )

Would appreciate any feedback. Thanks!

Tom


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/150 - Release Date: 10/27/2005
 

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



Re: [PHP] Printing from PHP

2003-11-06 Thread John W. Holmes
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?
No. PHP is server side, printing is client side.

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?
Again, client side issue. Use CSS.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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


Re: [PHP] Printing from PHP

2003-11-06 Thread Marco Tabini
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


[PHP] Printing from PHP

2003-11-06 Thread Peter Goggin
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