COM activation

Jan 2, 2011 at 1:18 PM

Is there a way to use COM compatible objects? I tried the syntax 

var fso = new ActiveXObject('Scripting.FileSystemObject');

but that only gave a JavascriptException. Apparently ActiveXObject is an unknown type.  

Coordinator
Jan 5, 2011 at 6:01 PM

You may refer to a thread discussing a similar problem:

http://javascriptdotnet.codeplex.com/Thread/View.aspx?ThreadId=240605

This thread explains how to create instances of any .NET class from Javascript code. You can easily improve this code to support COM objects by creating a SystemInvoker.CreateCOMObject( ) method, for example.

 

Jan 5, 2011 at 6:05 PM

Thanks.