visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

ALL :: ZONES :: How To Print A PHP Report/WebPage/Form


By: FiatLink Belgium  Date: 01/02/2003 00:00:00  English  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 English  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

EContact
browser fav
page generated in 292.021990 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page