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

All we need is an easy explanation of the problem, so here it is.

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.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

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).

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

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

Leave a Reply