Re: [PHP] HTML/PHP page print
On Mar 18, 2004, at 4:52 PM, Manisha Sathe wrote: Hello, I want to print a document. The values are picked up from database and then PHP displays it is on screen. But I want to print in some predefined format (Customer has printed stationary) by using Browser's print button. How can avoid other stuff on my web page ? Also when i print then title of document / page no / url / date also get displayed. How can i avoid it ? This has nothing to do with PHP, but more with presentation (client side). I would like to recommend http://www.alistapart.com/articles/goingtoprint/, which is an excellent article written by CSS guru Eric Meyer about printing from the web. Regards, Filip de Waard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML/PHP page print
Manisha Sathe wrote: How can avoid other stuff on my web page ? I assume you want to only print the information and not the page header, footer, navigation, etc. There are several ways to do this. The best way is with CSS. However, if you have not created your page primarily with CSS this won't work real well. The second step is to simply remove any headers or footers that you are including in your page when you want to print. In others words create a link on the page that says print that when clicked will not load any footers or headers. If you don't include any footers or headers, you could create a script that would remove tags and some others in order to print only the relevant material. Also when i print then title of document / page no / url / date also get displayed. How can i avoid it ? This kind of information is usually from the OS, browser or printer driver. Therefore, it would be very hard if not impossible to turn off through server-side scripting or even with JavaScript. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTML/PHP page print
Hello, I want to print a document. The values are picked up from database and then PHP displays it is on screen. But I want to print in some predefined format (Customer has printed stationary) by using Browser's print button. How can avoid other stuff on my web page ? Also when i print then title of document / page no / url / date also get displayed. How can i avoid it ? Thanks in advance Regards Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php