问题
I have a ASP.Net C# 4.0 Web Application
I need to Add a scanning feature for my users. This is what I want to achieve On my web application
- user clicks on a button
- opens a window with preview of document in Scanning device attached to the client system
- User confirms the Scan
- this will save the Scanned document in jpg/pdf format on the server
- then do the OCR on document
Can any one suggest a way to achieve this.
I read about this https://www.leadtools.com/sdk/engine/imaging not sure how much this can work. Can any one suggest a best way to get this done.
Thanks
update
tried leadtools from https://www.leadtools.com/support/forum/posts/m28036-Re--Scan-and-Upload-v16--NET-with-Caspol-exe-deployment as LEAD Support suggested but it is missing references not sure where and how to get those references
回答1:
HaBo, This is LEAD support. Since you mentioned our LEADTOOLS toolkit, the answer to your question is yes. Our toolkit can be used to implement either of the 2 approaches mentioned by tgolisch.
For the click-once approach, you simply use our Windows Forms controls that contain Twain support and package your application for ClickOnce deployment. This is done, for example, in this demo project: LEADTOOLS ClickOnce Demos
For the custom control approach, see the example code projects on our forums that perform Scan and Upload
回答2:
Web browsers don't have permissions to use system devices like this(major security issue). There are 2 common ways of getting around this:
- Make a custom control to run in your browser (flash, silverlight, java applet).
- Make a "click-once deployment app" that a user launches from your page.
Both approaches would send the data back to your server via web services or WCF, etc.
来源:https://stackoverflow.com/questions/11977226/document-scanning-from-asp-net-web-application