RE: [PHP] print page from php
Thx Miles and Jay -Oorspronkelijk bericht- Van: Miles Thompson [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 17 maart 2006 22:35 Aan: php-general@lists.php.net Onderwerp: Re: [PHP] print page from php At 09:57 AM 3/17/2006, Reinhart Viane wrote: All, I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit on an A4 page? Or do I have to set boundaries on the size of the tables the queried data will be shown in. Hope this makes any sense, Thanks in advance, Reinhart Viane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php CSS is probably the best solution http://www.w3.org/TR/REC-CSS2/page.html#q16 found whle googling http://www.google.ca/search?hl=enq=printing+CSS+mediabtnG=Google+Search This is a good article: http://css-discuss.incutio.com/?page=PrintStylesheets and as always, A List Apart has CSS Design: going to Print at http://www.alistapart.com/stories/goingtoprint/ I have seen examples of two-column pages, but do not know if the pages broke correctly when the matter was longer than one page. Alternately, display in tables and make certain you have a TH so your header can repeat. Hope this steers you in the right direction - Miles. -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006 -- 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] print page from php
[snip] I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit on an A4 page? Or do I have to set boundaries on the size of the tables the queried data will be shown in. [/snip] Create a CSS print stylesheet. http://www.alistapart.com/articles/goingtoprint/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print page from php
At 09:57 AM 3/17/2006, Reinhart Viane wrote: All, I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit on an A4 page? Or do I have to set boundaries on the size of the tables the queried data will be shown in. Hope this makes any sense, Thanks in advance, Reinhart Viane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php CSS is probably the best solution http://www.w3.org/TR/REC-CSS2/page.html#q16 found whle googling http://www.google.ca/search?hl=enq=printing+CSS+mediabtnG=Google+Search This is a good article: http://css-discuss.incutio.com/?page=PrintStylesheets and as always, A List Apart has CSS Design: going to Print at http://www.alistapart.com/stories/goingtoprint/ I have seen examples of two-column pages, but do not know if the pages broke correctly when the matter was longer than one page. Alternately, display in tables and make certain you have a TH so your header can repeat. Hope this steers you in the right direction - Miles. -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Print page without images
css: img{display:none;} John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] francesco[AT]automationsoft[DOT]biz wrote: I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? No. 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] Print page without images
* Thus wrote Gerben: css: img{display:none;} Dont forget to mention the media: @media print { img { display: none; } } Of course this is going on the assumption you dont have things like tdimg src=/trans.gif width=233 height=30/td Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Print page without images
francesco[AT]automationsoft[DOT]biz wrote: I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? No. 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] Print page with default margins
Narcis Florea wrote: Hi, Hello, I'm using Apache/PHP/MySQL in my business project Thank you for using php! My big problem now is: How can I print a page on a standard page format, like Letter, left margin: 0.25 inch, etc.) When I print, I must every time set page margin manually, and I want this being made by php or javascript automatically on load page Unfortunately, this is not php question. Try another list, likely css. I can help you only with this: style type=text/css media=screen !-- @import url(screen.css); //-- /style style type=text/css media=print !-- @import url(print.css); //-- /style -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Print page
[snip] I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? [/snip] Only in individual browser settings (like IE, File-Page Setup-Clear the Header and Footer boxes). There is no way to control this with PHP. Each browser is different on how this is handled. HTH! Jay *** * Central Texas PHP Developers Group * * San Antonio, Austin, San Marcos, New Braunfels, * * Seguin, Boerne, Blanco, the Hill Country* * Interested? * * Contact [EMAIL PROTECTED] * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Print page
yes, but that is a browser function not php goto file - page setup - then remove the header and footer data Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] Print page Hi, I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? Thanks, Rosen -- 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] Print page
Hi, I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? Yes. Click on "File" - "Page settings..." then find "Footer" and you'll see something like this: ubd Take away the "u", print again (or preview) and see what happens. Check help F1 for more info... - E Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ $B%&%#%k%9%a!<%k!"LBOG%a!<%kBP:v$J$i(B MSN Hotmail http://www.hotmail.com/JA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Print page
Thanks very much Rosen Jay Blanchard [EMAIL PROTECTED] wrote in message 003601c24f79$7ed376a0$8102a8c0@000347D72515">news:003601c24f79$7ed376a0$8102a8c0@000347D72515... [snip] I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? [/snip] Only in individual browser settings (like IE, File-Page Setup-Clear the Header and Footer boxes). There is no way to control this with PHP. Each browser is different on how this is handled. HTH! Jay *** * Central Texas PHP Developers Group * * San Antonio, Austin, San Marcos, New Braunfels, * * Seguin, Boerne, Blanco, the Hill Country* * Interested? * * Contact [EMAIL PROTECTED] * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Print page
Thanks very much Rosen Robert Collins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... yes, but that is a browser function not php goto file - page setup - then remove the header and footer data Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] Print page Hi, I'm using PHP to generate some report for printing. But when I print report from IE 5.0 browser, in the bottom of page IE prints URL of page. Can I remove it ? Thanks, Rosen -- 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