Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: hamidovtPosted on 2008-02-06 at 07:14:31ID: 20832556
Hi,
rinted").v alue = "YES"; yForm").su bmit();
Sending to the the certain printer using some kind of printer WebControl would not be possible. Although such controls do exist, that is not really handy because your applicatiosn is running on the server and end-user is located somewhere else on the internet-intranet. But with javascript you can initiate print function of the IE or some other browser. End-user will be able to choose the printer he wants and print the page. You can do that as below:
<html>
<head>
<title>JavaScript Sample by tgreer</title>
<script type="text/javascript">
function printMe()
{
window.print();
document.getElementById("p
document.getElementById("m
}
</script>
</head>
<body>
....
<input type="button" value="Print me" onclick="printMe();" />
</form>
</body>
</html>