?
Solved

print aspx page to default printer without any interactions

Posted on 2009-05-20
2
Medium Priority
?
591 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Assisted Solution

by:oobayly
oobayly earned 80 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

719 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