Forums

This topic is locked

Print Button

Posted 05 Oct 2001 17:51:30
1
has voted
05 Oct 2001 17:51:30 Paul Rossiter posted:
How can I (or can I) put a print button on a page?

Replies

Replied 05 Oct 2001 18:07:40
05 Oct 2001 18:07:40 Ryan Grace replied:
You could assign an onClick parameter to a button and use the JavaScript "window.print();". When the button is clicked the browser will pop up the print dialog box.

Ryan

Replied 05 Oct 2001 18:12:05
05 Oct 2001 18:12:05 Owen Eastwick replied:
To print from a text link:

<a href="#" onClick="window.print();return false">Click here to print this page</a>

To print from an image:

<a href="#" onClick="window.print();return false"><img src="YourImageDirectory/YourPrintIcon.gif" alt="" border="0" width="100" height="32"></a>

To print from a button:

<input name="Print" onClick="window.print();return false" type="button" value="Print">

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 06 Oct 2001 14:06:33
06 Oct 2001 14:06:33 Viktor Farcic replied:
Take a look at this link
www.webreference.com/js/column89/
There are some advanced functions of IE 5.5/6.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
To print from a text link:

&lt;a href="#" onClick="window.print();return false"&gt;Click here to print this page&lt;/a&gt;

To print from an image:

&lt;a href="#" onClick="window.print();return false"&gt;&lt;img src="YourImageDirectory/YourPrintIcon.gif" alt="" border="0" width="100" height="32"&gt;&lt;/a&gt;

To print from a button:

&lt;input name="Print" onClick="window.print();return false" type="button" value="Print"&gt;

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic