p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   Print on Button Click (http://p2p.wrox.com/showthread.php?t=16418)

mahulda August 5th, 2004 01:30 AM

Print on Button Click
 
Hi,
I want to add a button to my ASP.Net page which when clicked will evoke the File Print Command .

Can it be Done ?

-.. -..



planoie August 5th, 2004 02:50 PM

This will have to be a client-side javascript event. I'm pretty sure there are some threads on this forum dealing with that. Or just look google "javascript" and "print".

Gerhard August 5th, 2004 02:50 PM

yep it can:
<button onclick="window.print()">print</button>

Regards,


Gerhard Wentink


All times are GMT -4. The time now is 05:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.