Solved

print aspx page to default printer without any interactions

Posted on 2009-05-20
2
586 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Message not shown 5 50
HP FutureSmart 1 39
Reading the Web.Config using IIS 7.5? 4 39
Client Validating 2 date fields, required & comparison 1 28
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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