[IronPython] py to ip

Glauco Uri glauco.uri at prometeia.it
Wed Feb 4 09:48:58 CET 2009


Shri Borde ha scritto:
> See http://blogs.msdn.com/shrib/archive/2008/07/30/idispatch-support-on-in-ironpython-beta-4.aspx for the details.
>
>   


Thank you Shri, i've done some try and this still work well:

IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
 >>> import System
 >>> System.Type.GetTypeFromProgID("DSXXXX.XXXXChannel")
<System.RuntimeType object at 0x000000000000002B [System.__ComObject]>
 >>> qq = System.Type.GetTypeFromProgID("DSAXXXX.XXXXChannel")
 >>> System.Activator.CreateInstance( qq )
<System.__ComObject (_XXXXChannel) object at 0x000000000000002C>
 >>>


But now i've some question:

- the "GetTypeFromProgID" method let me use an installed COM objec over 
the PC still running this ipy script. This don't use Interop i think
If this is corerct i cannot in any way use remotley this object?


Try to explain my issue:
I'm writing a web application over a linux Server (A).
Some financial data come from "Thomson Datastream" using this COM obj 
installed on a Windows Server (B).
My purpose is to call this COM remotely from linux server.

probably i'm doing somethin wrong but from ipy description i've 
understood this i possible.

Thank's
Glauco




More information about the Ironpython-users mailing list