Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

print aspx page to default printer without any interactions

Posted on 2009-05-20
2
Medium Priority
?
593 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 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

782 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