Click here to Skip to main content
Sign Up to vote bad
good
See more: C#2.0
I have a printer.I required authentication mechanism for users to that relevant printer.
 
once they try to print word, excel and pdf.. documents it must ask user name and password. please help me..... please give me a code for that , if you have...
 
:(
Posted 12 Jan '13 - 18:25

Comments
Plyswthsqurles - 13 Jan '13 - 1:57
What stack are you using? Asp.net? Winforms? WPF? This is some helpful info. I asked my magic 8 ball and it asked me to please try again. If you can let us know i might be able to throw a sample together but in the time being what you would have to do is the following. 1) Have button or some trigger to send the desired file to printer 2) Have form popup asking for credentials 3) If credentials are good then send the file to the printer silently, i gave sample of how to do this with PDF here: http://www.codeproject.com/Answers/497800/CodeplusForplusPrintingplusMultipleplusPDFplusFile#answer1
tiggerc - 14 Jan '13 - 11:21
You can do this if you setup a Windows network correctly, this will allow you to limit the printers that people can print to etc. Alternatively if I understand you correctly, you wish to to write a handler for windows printing and when the user tries to print you want to ask for a username and password? ( This option is fairly difficult and requires manipulating Windows ) I certainly don't have any code you can have as that is not what this site is about, you haven't even provided anything that you have tried.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 206
1 Maciej Los 146
2 Richard MacCutchan 145
3 Tadit Dash 140
4 Sergey Alexandrovich Kryukov 135
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,957
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,155


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 13 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid