Click here to Skip to main content
15,506,846 members
Home / Discussions / C#
   

C#

 
GeneralRe: Disabling button not working Pin
MichCl15-Oct-12 3:24
MichCl15-Oct-12 3:24 
GeneralRe: Disabling button not working Pin
Pete O'Hanlon15-Oct-12 3:26
mvaPete O'Hanlon15-Oct-12 3:26 
AnswerRe: Disabling button not working Pin
Ravi Bhavnani11-Oct-12 9:47
professionalRavi Bhavnani11-Oct-12 9:47 
QuestionC# SNMP Printer! HELPPP! Pin
batuhan karaduman11-Oct-12 5:22
batuhan karaduman11-Oct-12 5:22 
AnswerRe: C# SNMP Printer! HELPPP! Pin
Eddy Vluggen11-Oct-12 5:44
professionalEddy Vluggen11-Oct-12 5:44 
AnswerRe: C# SNMP Printer! HELPPP! Pin
Wes Aday11-Oct-12 5:46
professionalWes Aday11-Oct-12 5:46 
AnswerRe: C# SNMP Printer! HELPPP! Pin
jschell11-Oct-12 9:55
jschell11-Oct-12 9:55 
AnswerRe: C# SNMP Printer! HELPPP! Pin
batuhan karaduman11-Oct-12 21:31
batuhan karaduman11-Oct-12 21:31 
now i wont be able to code this with examples on the internet, right?

XML
String snmpAgent = "ipAddressOfPrinter";
String snmpCommunity = "public";
SimpleSnmp snmp = new SimpleSnmp(snmpAgent, snmpCommunity);
Dictionary<SnmpSharpNet.Oid, AsnType> result = snmp.Get(SnmpSharpNet.SnmpVersion.Ver1, new string[] { "OidOfPrinter" });
if (result == null)
{
    MessageBox.Show("Request Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{

    foreach (KeyValuePair<SnmpSharpNet.Oid, AsnType> entry in result)
    {
        textBox1.Text = entry.Key.ToString() + " = " + SnmpConstants.GetTypeName(entry.Value.Type) + " (SysDesc.): " + entry.Value.ToString() + "->" + SnmpConstants.SMI_APPSTRING;

        textBox1.Text += "SysName: "+entry.Key;
    }
}



Here is the connection to the printer. I can get the name, software, oid of the printer but i cant check its status(if it is online, paper jam, offline, toner low, etc.) how can i get theese properties?

Thanks a lot
AnswerRe: C# SNMP Printer! HELPPP! Pin
Marco Bertschi12-Oct-12 5:57
professionalMarco Bertschi12-Oct-12 5:57 
QuestionStoring and retrieving objects inside databse Pin
Sabry190511-Oct-12 5:08
Sabry190511-Oct-12 5:08 
AnswerRe: Storing and retrieving objects inside databse Pin
Eddy Vluggen11-Oct-12 5:43
professionalEddy Vluggen11-Oct-12 5:43 
GeneralRe: Storing and retrieving objects inside databse Pin
Sabry190511-Oct-12 8:06
Sabry190511-Oct-12 8:06 
GeneralRe: Storing and retrieving objects inside databse Pin
Eddy Vluggen11-Oct-12 10:59
professionalEddy Vluggen11-Oct-12 10:59 
GeneralRe: Storing and retrieving objects inside databse Pin
Sabry190514-Oct-12 3:54
Sabry190514-Oct-12 3:54 
Question3 tier architecture Pin
tannu dwivedi11-Oct-12 2:51
tannu dwivedi11-Oct-12 2:51 
AnswerRe: 3 tier architecture Pin
Wes Aday11-Oct-12 3:25
professionalWes Aday11-Oct-12 3:25 
AnswerRe: 3 tier architecture Pin
Eddy Vluggen11-Oct-12 5:47
professionalEddy Vluggen11-Oct-12 5:47 
AnswerRe: 3 tier architecture Pin
CptSupermrkt11-Oct-12 17:26
CptSupermrkt11-Oct-12 17:26 
QuestionInjection Pin
ALIJavany11-Oct-12 2:24
ALIJavany11-Oct-12 2:24 
AnswerRe: Injection Pin
J4amieC11-Oct-12 2:30
J4amieC11-Oct-12 2:30 
GeneralRe: Injection Pin
ALIJavany11-Oct-12 9:37
ALIJavany11-Oct-12 9:37 
AnswerRe: Injection Pin
Eddy Vluggen11-Oct-12 2:30
professionalEddy Vluggen11-Oct-12 2:30 
AnswerRe: Injection Pin
Abhinav S11-Oct-12 21:57
Abhinav S11-Oct-12 21:57 
AnswerRe: Injection Pin
KiranKumar Roy14-Oct-12 2:20
KiranKumar Roy14-Oct-12 2:20 
QuestionOpacity Pin
ALIJavany11-Oct-12 2:21
ALIJavany11-Oct-12 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.