Re: [PHP] Printing landscape
actually, you can control your printer, look: http://www.php.net/manual/en/function.printer-set-option.php you have to do: $handle = printer_open(); printer_set_option ($handle, PRINTER_ORIENTATION , PRINTER_ORIENTATION_LANDSCAPE); printer_close($handle); you've got many interesting options with this function. ( These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4.0.4.) and you can do something about the phase of the moon too, look here :P http://www.phpclasses.org/browse/package/1201.html?download=targz Cheers, Luis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing landscape
Hi Lou, Printer function to do that is printer_set_option() http://www.php.net/manual/en/function.printer-set-option.php The code might be like this: --- begin code --- $handle = printer_open(); printer_set_option($handle, PRINTER_ORIENTATION, PRINTER_ORIENTATION_LANDSCAPE); .. --- end code --- PS: This function only available under Windows and I cannot found javascript function to do that, if you found it, please tell me. Good Luck, Firman - Original Message - From: "Lou Apolonia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 15, 2004 9:35 PM Subject: [PHP] Printing landscape > Is there a function/parameter that tells the printer to print in > landscape? I believe I've searched through the Printer Functions and > haven't encountered such a thing. > > Any help is appreciated. > > L > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing landscape
Lou Apolonia wrote: Is there a function/parameter that tells the printer to print in landscape? I believe I've searched through the Printer Functions and haven't encountered such a thing. Any help is appreciated. L Do you mean how is the output printed on the client machine? Then use css: @media print { size: landscape; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing landscape
Lou -- ...and then Lou Apolonia said... % % Is there a function/parameter that tells the printer to print in % landscape? I believe I've searched through the Printer Functions and % haven't encountered such a thing. In general, no. Since PHP runs on the server, it has nothing to do with your browser or printer or parllel port or phase of the moon. You might be able to embed printer commands to switch to landscape as part of your output stream, but it would depend on the printer and not be very portable. You could probably find some javascript to tell the browser to tell the printer to use landscape, but I not only wouldn't sully myself by going there :-) but don't have the slightest idea where to look anyway. There's always educating/training the user, but that can be the hardest task of all! ;-) % % Any help is appreciated. Good luck! HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
[PHP] Printing landscape
Is there a function/parameter that tells the printer to print in landscape? I believe I've searched through the Printer Functions and haven't encountered such a thing. Any help is appreciated. L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php