Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在浏览器中使用IronPython访问COM对象?_Com_Ironpython - Fatal编程技术网

在浏览器中使用IronPython访问COM对象?

在浏览器中使用IronPython访问COM对象?,com,ironpython,Com,Ironpython,我试图在浏览器中使用IronPython提供的COM对象。 我在ipy.exe中尝试了以下代码,效果良好: from System import Type, Activator Activator.CreateInstance(Type.GetTypeFromProgID("Word.Application")) 但是如果我在浏览器中使用以下代码: <html> <script type="text/python"> from System import Type,

我试图在浏览器中使用IronPython提供的COM对象。 我在ipy.exe中尝试了以下代码,效果良好:

from System import Type, Activator
Activator.CreateInstance(Type.GetTypeFromProgID("Word.Application"))
但是如果我在浏览器中使用以下代码:

<html>
<script type="text/python"> 
from System import Type, Activator
Activator.CreateInstance(Type.GetTypeFromProgID("Word.Application"))
</script>
</html>
它就是不起作用


我想知道在浏览器中使用IronPython是否有限制。我错过了什么吗?

Silverlight,这使得浏览器中的IronPython具有严格的安全性。Silverlight的沙箱要求IronPython代码在包含的internet域localhost中运行,而不是直接从文件系统运行到本地域。你可以从Jimmy Schementi的网站上找到更多信息