Monitoring Scanner Device using C#.NET

Csharp , Scanner , Properties India
  • 11 years ago

    Can anybody help me to get the code to get properties of a scanner such as how much images have been scanned, name of scanner device etc. I've searched all over but couldn't get it. I've got the code for Printer device by using WMI. Is there any way to get the WMI code for scanner device also??

  • 11 years ago

    See this link. http://www.codeproject.com/KB/dotnet/twaindotnet.aspx

    Alessandro Zambonin

  • 11 years ago

    Thanks for reply Alessandro, but I don't want to acquire the images, I just want to capture that event in which scanner device is called, and want to have values of properties of scanner device.

  • 11 years ago

    Ok. I think this link help you.

    http://dotnetslackers.com/Community/blogs/basharkokash/archive/2008/03/15/USB-Detection-source- code.aspx

  • 11 years ago

    Again thanks for reply Alessandro, but the page is not available now.

  • 11 years ago

    http://dotnetslackers.com/Community/blogs/basharkokash/archive/2008/03/15/USB-Detection-source-code.aspx

    Excuse extra space. Now you can view.

  • 11 years ago

    http://dotnetslackers.com/Community/blogs/basharkokash/archive/2008/03/15/USB-Detection-source-code.aspx

    Excuse extra space. Now you can view.

  • 11 years ago

    Thanks for the invaluable suggestion Alessandro, but this will check any device which supports USB. What should I do to check that the device is a scanner and get its properties and if that scanner does not support USB then?

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth