问题
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();
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?
...
<object id="DigitalSign" codeBase="DigitalSign.NJGGZY.x86.cab#version=3,0,0,1" classid="clsid:AE9C27E1-AF18-48A6-8087-026064B130D5"></object>
回答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