PDA

View Full Version : 'Print' button


crmpicco
02-08-2005, 03:37 PM
My Code:

<% ' Last Edit: CRM_08feb05 %>
<%
forename = request.form("forename")
surname = request.form("surname")
comp_name = request.form("comp_name")
position = request.form("forename")

'response.write "Forename = " & forename & "<br>"
'response.write "Surname = " & surname & "<br>"
'response.write "Comp Name = " & comp_name & "<br>"
'response.write "Position = " & position & "<br>"

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Volaro</title>
<style>
BODY {scrollbar-face-color: #cc0000;
scrollbar-shadow-color: #990000;
scrollbar-highlight-color: White;
scrollbar-3dlight-color: #cc0000;
scrollbar-darkshadow-color: #660000;
scrollbar-track-color: #ffcccc;
scrollbar-arrow-color: #ffffff;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#f5f5f5">
<form name="form">
<table align="center">
<tr>
<td align="center"><iframe src="linktest.pdf" width="600" height="600" scrolling="yes" name="content" class="body"></iframe></td>
</tr>
</table>
<div align="center">
<input type="checkbox" name="agree" id="agree">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Agree to Terms & Conditions<br></font>
<input type="button" name="accept" id="accept" value="Accept" onMouseOver="style.cursor='hand'">&nbsp;&nbsp;&nbsp;
<input type="button" name="decline" id="decline" value="Decline" onMouseOver="style.cursor='hand'">
</div>

</form>
</body>
</html>

_______________________________________

How do i have a 'Print' button that will print the pdf out? I have used windows (MSIE) print buttons like this before. But how can this be done with Adobe Acrobat Reader?

I just want a 'print' button underneath the 'Agree to Terms & Conditions' text.

Thanks.

Picco

miranda
02-08-2005, 06:12 PM
Using server side code you cannot have a print button. You can set one up client side with javascript using window.print(). I am not sure if it will catch all of the iframe contents though.