How to work with COM object using JavaScript?

前端 未结 3 1582
猫巷女王i
猫巷女王i 2021-01-07 04:11

I drive into this issue: I create COM object using C#, register it and managed to work with it using powershell. when i trying to do the same with JavaScript it fails, but j

3条回答
  •  天涯浪人
    2021-01-07 04:49

    Javascript indeed does not support COM. An option is to use JScript and an ActiveX wrapper to a COM object. Also, it will only work in Internet Explorer.

    Instantiating a COM class
    Calling functions of a COM object in JScript
    Other JScript/COM tutorials, including script callbacks

提交回复
热议问题