Solved

print aspx page to default printer without any interactions

Posted on 2009-05-20
2
583 Views
Last Modified: 2013-12-15
hi i wanna print aspx page to default printer..without selecting printer...
i am using this code

<input type="button" name="PrintButton" onclick="javascript:window.print();" value="Print Page" />

but its asking for default printer...then its going to be print that page...

but i wanna print page directly page without select printer again and again.....

i mean can i set default printer so that every time i don't have to select the printer....
0
Comment
Question by:mahajan344
2 Comments
 
LVL 15

Assisted Solution

by:oobayly
oobayly earned 20 total points
ID: 24431856
In short, you can't do this. The browser will always require user input when printing. Have a look at this thread which give a little more detail. The question was asked about PDFs, but the answer still stands for plain HTML pages too.
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_24367099.html
0
 

Accepted Solution

by:
mahajan344 earned 0 total points
ID: 24438098
yes i googled too.. and come to this decesion that its can't be possible.. u will have to select printer then its gonna print that page..anyway thnx dude for your attention
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now