Home > Archive > PHP on Windows > February 2005 > RE: [PHP-WIN] printing
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: [PHP-WIN] printing
|
|
| Warren Vail 2005-02-15, 3:58 am |
| Jason,
It helps to remember how most PHP applications are structured (server
side/browser side) and the options you want to use depends on where you want
the printing to occur.
Server Side;
the manual for the printer functions
http://us4.php.net/manual/en/ref.printer.php contains the following
disclaimer;
These functions are only available under Windows 9.x, ME, NT4 and 2000. They
have been added in PHP 4.0.4.
which means that your server needs to be a windoz platform.
Client (Browser) Side;
Two solutions come to mind, one is preparing a PDF file on the fly and
letting the user print via the Adobe interface
http://us4.php.net/manual/en/ref.pdf.php
the other is accomplished via JavaScript. You should be able to find some
help with printing a web page at http://www.hotscripts.com
HTH,
Warren Vail
> -----Original Message-----
> From: Jason Beaver [mailto:jbeaver@sierraoffice.com]
> Sent: Monday, February 14, 2005 4:46 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] printing
>
>
> Has anyone ever done any printing from PHP. I have recently been
> trying to
> get the printer functions to work with no success. anyone have any hints?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
| |
| Jason Beaver 2005-02-15, 8:57 pm |
| I finally was able to get a list of printers out of it, I was forgetting the
'printer.default_printer = "PHP_INI_ALL"' setting
"Warren Vail" <warren@vailtech.net> wrote in message
news:OKELKOEBOADCAALCCCJPIEFILMAA.warren@vailtech.net...[color=darkred]
> Jason,
>
> It helps to remember how most PHP applications are structured (server
> side/browser side) and the options you want to use depends on where you
> want
> the printing to occur.
>
> Server Side;
>
> the manual for the printer functions
> http://us4.php.net/manual/en/ref.printer.php contains the following
> disclaimer;
>
> These functions are only available under Windows 9.x, ME, NT4 and 2000.
> They
> have been added in PHP 4.0.4.
> which means that your server needs to be a windoz platform.
>
> Client (Browser) Side;
>
> Two solutions come to mind, one is preparing a PDF file on the fly and
> letting the user print via the Adobe interface
> http://us4.php.net/manual/en/ref.pdf.php
>
> the other is accomplished via JavaScript. You should be able to find some
> help with printing a web page at http://www.hotscripts.com
>
> HTH,
>
> Warren Vail
>
>
>
|
|
|
|
|