ALL :: ZONES :: How To Print A PHP Report/WebPage/Form |
|||
| By: FiatLink |
Date: 01/02/2003 00:00:00 |
Points: 50 | Status: Answered Quality : Excellent |
|
Hi Friends I have created one report in PHP using HTML and some PHP tags. I want to take a print out of it without using the print option in toolbar. Because my application will hide the toolbar. so i will provide one button & on click i want to display a printer dialog box. my application is browser independent. platform is linux i found pritnig for windows based. we have to modify php.ini with some dll. but dll won't work with linux. can any one help me. i am using odbc not adodb. thanks in advance |
|||
| By: VGR | Date: 01/02/2003 07:23:00 | Type : Answer |
|
| this will show the print dialog box <form> <input type="button" value="Print" Onclick="print()" ;> </form> <a href="javascript:print()">Print</a> just make your PHP file also issue this statement on the bottom of the page : echo " <center><a href=\"javascript:print(); return false;\">print this</A></center> "; regards |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








