views:

393

answers:

3

can you scan directly from an asp.net page or even an embedded silverlight object?

thanks!

A: 

Silverlight doesn't have access to local devices like scanners. ASP.NET pages run in the web browser, so they also don't have access to scanners.

What are you trying to accomplish?

Jon Galloway
i know there have been numerous conflicts on developing a web-based scanning module via TWAIN driver. I was wondering maybe there's a better way now that Silverlight or even AJAX is at its peak.
A: 

If user can use the 'Windows Fax and Scan' utility to scan the document and save it in the local hard disk, You may use Silverlight OpenFileDialog and read the document and save it on the server.

thanks for the suggestion, but i need my web app to directly access the scanner hardware and make the scanning via the web app i created.
+1  A: 

I've done exactly this in a few company website applications that I've worked on.

You have to use an ActiveX control to gain access from the client's browser to the configured TWAIN scanner on the machine. Once you have access you can then initiate the scanner via a webpage button, scan the document and use the newly delivered image object within your website code.

I'd recommend looking at an already developed activex component library to do this for you. An example being http://dynamic-web-twain.smartcode.com/info.html

The downside of this approach is obviously ActiveX only works with IE and requires the user to trust your website. If your user base is a trusted company or are internally based then this should not be a problem.

Brian Scott