将扫描生成电子文件应用程序与浏览器集成
我们有一个基于 Intranet 的应用程序,用户有桌面扫描仪(与 TWIAN 但不兼容 WIA)。用户需要从浏览器窗口(IE 8)“单击扫描”,并将扫描的图像保存到应用程序中,只需最少的用户交互。
我有具有此功能的 ac# winform 应用程序,但我正在努力将其与浏览器(IE 8)集成。
我考虑过:
- 一个浏览器帮助对象将 winform 应用程序作为 dll 调用
- 具有自己的扫描功能实现的 BHO
- 银光
我还应该考虑其他方法吗?
到目前为止,我所得到的内容非常依赖 COM,基于 这个问题/答案 和在代码项目中使用 .NET TWAIN 示例。
We have an intranet-based application, and users have desktop scanners (which are TWIAN but not WIA compatible). Users need to 'click to scan' from the browser window (IE 8) and save the scanned image to the application with minimal user-interaction.
I've got a c# winform app with this functionality, but I'm struggling to integrate it with the browser (IE 8).
I have considered:
- A Browser-Helper Object calling the winform app as a dll
- A BHO with its own implementation of the scan functionality
- Silverlight
Are there any other approaches I should consider?
What I've got so far is pretty COM-heavy, based on this question/answer and using the .NET TWAIN samples at code project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Silverlight 是您的选择吗? (您的客户会安装它吗)如果是的话,使用单个 Siverlight 页面进行扫描可能是最佳选择。
扫描仪是否可以设置为通过电子邮件发送扫描图像,如果可以,您可以让您的网络应用程序读取通过电子邮件发送给它的图像。
正如您已经了解的那样,WinForm 可能是一个小型的“单击一次”winform 应用程序来执行扫描 - 这取决于客户是否愿意安装 .net 框架。
(对于 Web 应用程序来说,仍然有一些令人头疼的事情,但客户要求使用 Web 应用程序,因为他们想要“无需安装”)
Is Siverlight an option for you? (Will your customers install it) If so having a single Siverlight page for scanning may be the best option.
Can the scanner be setup to email scanned images, if so you could have your web app read images that was emailed to it.
As you already know WinForm, maybe a small “click once” winform app that does the scanning – this depends on the customers being willing to install the .net framework.
(There are still some things that are a pain in the neck for Web Apps, but customers asked for WebApp as they want “nothing to install”)
Scanner.js 获取图像从浏览器中的 TWAIN WIA 扫描仪和网络摄像头。输出可以是将图像返回到网页,直接上传到服务器,或者根据您的情况,保存到本地磁盘。
当指定
save_path
的值时,您可以使用将被扩展的变量。例如,${TMS} 将扩展为时间戳,${EXT} 将扩展为文件扩展名。Scanner.js 支持浏览器Web twain图像采集,格式如JPG、多页PDF、PNG等
阅读浏览器 JavaScript Web twain 扫描的开发人员指南(Chrome、Edge、Firefix 和 IE)。
Scanner.js acquires images from TWAIN WIA scanners and webcams in your browser. The output can be returning the images to the web page, uploading to the server directly, or in your case, saving to the local disk.
When specifying the value for
save_path
, you may use variables which will be expanded. For example, ${TMS} will be expanded as timestamp and ${EXT} as file extension.Scanner.js supports in browser web twain image acquisition in formats like JPG, multi-page PDF, PNG, etc.
Read the developer guide to JavaScript web twain scanning for browsers (Chrome, Edge, Firefix and IE).