Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Help in Silverlight with COM object RSS

3 replies

Last post Aug 25, 2008 07:57 AM by rajesh shirpuram

(0)
  • ChadChang

    ChadChang

    0 Points

    2 Posts

    Help in Silverlight with COM object

    Aug 25, 2008 04:14 AM | LINK

    Hi, I just wonder is there any method for me to write custom plug-in for silverlight (look like Active X which allows me to call client side COM Object)? I search many article that silverlight no support for active x and the weakness of it only run in IE. Please provide me any suggestion that I can communicate my silverlight program with client COM object.
  • rajesh shirpuram

    rajesh shirp...

    Contributor

    2315 Points

    507 Posts

    Re: Help in Silverlight with COM object

    Aug 25, 2008 06:43 AM | LINK

    If your COM object can understand Javascript .. you can communicate using javascript with other activeX.

     

    Thanks
    Rajesh Shirpuram

    (If this has answered your question, please click on "mark as answer" on this post. Thank you!)
  • ChadChang

    ChadChang

    0 Points

    2 Posts

    Re: Help in Silverlight with COM object

    Aug 25, 2008 07:21 AM | LINK

    My existing client program cannot be access using javascripts.That mean i need to write an active x for calling my COM object like normal asp.net do? Silverlight is a plug-in,so can i write my calling COM object method in silverlight plug in?Some article state that Active X is not support in Silverlight.

    Thanks for a help

  • rajesh shirpuram

    rajesh shirp...

    Contributor

    2315 Points

    507 Posts

    Re: Re: Help in Silverlight with COM object

    Aug 25, 2008 07:57 AM | LINK

     Silverlight presently does not support ActiveX. But if you can use asp.net to call your ActiveX and get data. Pass that data from aspx to silverlight using javascript as a bridge.

    Here are the links

    http://pietschsoft.com/post/2008/06/Silverlight-and-JavaScript-Interop-Basics.aspx

    http://msdn.microsoft.com/en-us/library/cc221359(VS.95).aspx

    http://blogs.microsoft.co.il/blogs/tamir/archive/2008/07/01/quick-silverlight-tip-how-to-access-html-dom-from-silverlight-and-silverlight-managed-objects-from-html.aspx

     

    Thanks
    Rajesh Shirpuram

    (If this has answered your question, please click on "mark as answer" on this post. Thank you!)