Changing default printer in asp.net or javascript, is this possible?

Possible Duplicate:
Printing to a specific printer from a web app

I have made a program, and its requirement is to print documents, please tell me is this possible that i can change the default printer on client side in asp.net or javascript, and is this possible to change the trays of printer as well, as i can see this is possible in applet, what to do in .net.
I want when default printer is changed, i will save it in database, and whenever that page will be opened, it will automaticaly select the default printer to that selected item. So is there any library required for it.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

No, this is not possible. Try to think through all the ways that the ability to manipulate a printer or printer settings via a web site could be used maliciously.

Unless you’re using an ActiveX control, or something like it, you can’t even print without prompting the user first (where they would be able to change their printer manually).


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x