Solved

print aspx page to default printer without any interactions

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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