使用 ActiveX 时可能会遇到哪些问题/困难?
我需要一些有关 ActiveX 的专家信息以及来自已经使用它的人的一些有价值的经验报告。
情况如下:大约 90% 的应用程序都是使用 ASP.net WebForms 创建为 Web 应用程序。我们现在正在转向更现代的方法,创建富客户端 JavaScript 应用程序。 但是,在最近的一个项目中,客户的强烈要求是能够直接打印到连接到用户工作站的(先前配置的)打印机。是的,没有打印机对话框、打印预览等。它必须很快。
显然,在这种情况下,您宁愿使用桌面应用程序,也不愿使用基于网络的应用程序。尽管如此,我们还是希望从现有的 Web 开发知识中受益,因此正在考虑将非常具体的、独立的打印功能编写为 ActiveX 控件(IE 依赖性不是问题)。
现在,由于“ActiveX”这个词本身就引起了一些人的厌恶,我想听听使用这种(旧)技术可能存在的潜在问题,或者您是否直接考虑我做它作为一个桌面应用程序并完全忘记它?或者有替代方案吗??
I need some expert information about ActiveX and some valuable experience reports from those that already used it.
The situation is the following: ~90% of all of our applications are created as web apps with ASP.net WebForms. We're now in the process of switching to a more modern approach, creating rich client JavaScript apps. However, In one of the recent projects, a strong requirement from the customer is the ability to directly print to a (previously configured) printer attached to the user's workstation. Yes, no printer dialogs, print previews etc.. It has to be fast.
Obviously this is a scenario where you would rather use a desktop app than a web based one. Still, we would like to benefit from our existing web dev knowledge and are therefore considering to write that very specific, isolated printing functionality as an ActiveX control (IE dependency is not an issue).
Now, since the word "ActiveX" alone causes disgust for some people, I'd like to hear what might be the potential problems at using such a (old) technology or do u directly consider me to make it as a desktop app and completely forget about it?? Or are there alternatives??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将面临的主要挑战是学习曲线;除此之外,最大的问题是您可能会搞砸并打开安全漏洞(例如,如果恶意第三方在其网络钓鱼站点上加载您的 ActiveX 控件会发生什么?他们可以用它来打印东西吗?)等等
。为了了解学习曲线,我强烈建议您查看 FireBreath,它可用于创建适用于 IE 的浏览器插件(如ActiveX 控件)以及Firefox、chrome、safari 等(作为 NPAPI 插件)。尽管 ActiveX 是一项“古老”技术,但它在现代仍然被广泛使用;例如,Flash、Silverlight、Quicktime 等“插件”都是 IE 中的 ActiveX 控件。
The primary challenge you'll face is the learning curve; beyond that the biggest problems are the potential for you messing up and opening a security hole (for example, what happens if a malicious third party loads your activex control on their phishing site? can they use it to print things?), etc.
For the learning curve, I highly recommend looking at FireBreath, which can be used to create browser plugins that work on IE (as an ActiveX control) as well as Firefox, chrome, safari, etc (as a NPAPI plugin). Though ActiveX is an "old" technology, it's still used extensively in the modern day; for example, Flash, Silverlight, Quicktime, and other "plugins" like that are all activex controls in IE.