Background behind this article is bit interesting, we have a project in ASP.NET, which open word and excel files on client machine.
why not window.open() ?
Here we used ActiveX to create word and excel object
when we deal with ActiveX, most of the time security issue are lift.
and if you run above code may be your browser gives you following error
To over come this we have to chnage the browser settings.
we have to tell browser to initialiaze and run activex controls.
change the browser setting. InternetExplorer --> Tools --> InternetOntions --> Security --> Custom Level
This article opens Word/Excel using ActiveX object and unfortunately, these AciveX Plugins are only supported by Internet Explorer (tested on IE6/7/8).
These objects are used to create instances of OLE Automation. Several applications (Microsoft Office Word, Microsoft Office Excel, Windows Media Player, ...)
provide OLE Automation objects to allow communication with them.
Client side automation is a good alternative to server side automation. Server side automation is not recommended by Microsoft itself, check article
Suggestions and Queries are always welcome.