请建议使用基于Scanner TWAIN Web的.NET Web应用程序免费许可证 [英] Please kindly suggest Scanner TWAIN Web based free license for .NET Web Application

查看:74
本文介绍了请建议使用基于Scanner TWAIN Web的.NET Web应用程序免费许可证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





请建议我扫描仪TWAIN基于Web的免费许可证 for .NET Web Application。



我试着找到它。我发现只有TwainX,但它只适用于IE而不是Chrome。



谢谢你和问候



: )

Hi,

Please kindly suggest me Scanner TWAIN Web based free license for .NET Web Application.

I try to find it. I found only TwainX, but it work only IE not Chrome.

Thank you and Regards

:)

推荐答案

您遇到的问题是,浏览器在沙箱中运行,出于安​​全原因,无法访问您的硬件API。 />


TwainX在IE中工作的原因是因为IE支持ActiveX。这是一项技术,允许网站构建一个桥梁,如果您授权,从沙盒中进入操作系统。



Firefox,Safari和Chrome不支持ActiveX。事实上,我不认为有一种技术可以在浏览器和所有浏览器上实现你想要做的事情。



你最好的选择将它从浏览器中删除。



.Net有一个名为ClickOnce的部署机制。所有主流浏览器都支持此功能(其中一些浏览器具有额外的浏览器扩展名)。



这将允许您开发一个Windows应用程序,该应用程序将直接从您的网站启动并将执行您所需的,面向硬件的任务。通过Web服务将结果提供给您的Web服务器,然后您就可以在浏览器中管理响应/反馈。



很遗憾您无法迁移这对MacOS或Linux来说是一个仅限Windows的解决方案。
The problem you have here, is that browsers operate in a sand box which for very good security reasons aren't granted access to your hardware APIs.

The reason TwainX will work in IE is because IE supports ActiveX. This is a technology which will allow a website to construct a bridge, if you authorise it to, out of the sand box and into the operating system.

Firefox, Safari and Chrome do not support ActiveX. In fact I don't think there's a single technology which will work in the browser and on all browsers to achieve what you're trying to do.

Your best option would be to take it out of the browser.

.Net has a deployment mechanism called ClickOnce. This is supported by all major browsers (Some with additional browser extensions).

This will allow you to develop a Windows application which will be launched directly from your website and will perform your desired, hardware oriented task. Provide the result via a web service to your web server and then you'll be able to manage the response/feedback within the browser.

Unfortunately you can't migrate this to MacOS or Linux so it will be a Windows only solution.


来自网页?你不能......至少不能使用基于HTML / JS的页面。



可以用Silverlight完成(但我不知道具体如何,但我们有一个程序可以做到 - 显然我不能在这里发布代码)。具体来说,您可以向页面添加Silverlight控件以支持它,因此您无需在Silverlight中重做整个应用程序。
From a web page? You can't...at least not with HTML/JS-based pages.

It can be done with Silverlight however (I don't know how exactly, but we have a program that does it - obviously I can't post the code here). Specifically, you could add a Silverlight control to your page to support it, so you wouldn't need to redo your entire application in Silverlight.


这篇关于请建议使用基于Scanner TWAIN Web的.NET Web应用程序免费许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆