Get Client side printer list
-
I had a drop down list and populating with installed printer. On server/development pc its giving list. But when i host in IIS and access it from remote it giving server/host printer list. Is there a way by which i can get client side printer list. I want to print a label on printer selected by client. Regards
-
I had a drop down list and populating with installed printer. On server/development pc its giving list. But when i host in IIS and access it from remote it giving server/host printer list. Is there a way by which i can get client side printer list. I want to print a label on printer selected by client. Regards
Without looking at your code but looking at your post, it is clear that the code for populating that printer drop down is written at server side. So it would NEVER show you the client's list of printers, it will show you the list of printers on the server. It is important that you understand this fundamental concept. To achieve what you need - you will have to write some client side scripting or ActiveX - though I am not sure that can be achieved since the browser may not be allowed to have access to the client's resources through script. Generally, it is the end user's responsibility (privilege?) to select the printer he wants to use. You can put out some advise for the user to select a correct printer. Hope this helps. Shreekar