Invoke ActiveX In Electron

血红的双手。 提交于 2019-12-24 01:40:15

问题


I have several activex controls( .cab files) for DSVerify Or DigitalSignature and in the past i use html and load them into ie like: DigitalSign.GetSelCertSign();
... <object id="DigitalSign" codeBase="DigitalSign.NJGGZY.x86.cab#version=3,0,0,1" classid="clsid:AE9C27E1-AF18-48A6-8087-026064B130D5"></object>
and now i want to use electron as cross-platform runtime, but i don't know how to invoke these activex plugins in electron , or how to embeded ie in electron?


回答1:


It's not possible, sorry! Electron is based on Chrome, which doesn't support ActiveX




回答2:


The ActiveX Objects can be invoked with some npm packages, like "win32ole". You can see a few examples here: https://www.npmjs.com/package/win32ole



来源:https://stackoverflow.com/questions/36309779/invoke-activex-in-electron

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!