List of ActiveXObject Constructor Parameters

Constructor

ActiveXObject()

supports different types of parameters as follows:

new ActiveXObject("Msxml2.DOMDocument"); 
new ActiveXObject("Msxml2.XSLTemplate"); 
new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
new ActiveXObject("Msxml2.DOMDocument.6.0"); 
new ActiveXObject("Microsoft.XMLHTTP"); 
new ActiveXObject("Microsoft.XMLDOM"); 
new ActiveXObject("Excel.Application");
new ActiveXObject("Word.Application");
new ActiveXObject("Excel.Sheet");

      

Where can I find these parameters (activexobject constructor)?

from this link , I found the following information:

new ActiveXObject(class[, servername]);

      

class

uses the syntax library.object , where library is the name of the application (e.g. Word, Excel) or the library that contains the object, and the object is the type or class of the object to create. servername (optional) specifies the name of the server where the object resides.

+3


source to share


3 answers


ActiveX objects are binary extensions to Internet Explorer that (typically) add functionality that the browser would not otherwise support.

When you install an ActiveX control, it modifies the system registry to register various interfaces and entry points so that the control runs correctly when a web page requests it.

ActiveX controls are usually created to extend the browser in specific ways; that is, they are designed to solve problems that might not be suitable for learning JavaScript. Microsoft does not document the internal structure of many ActiveX controls, but you can find information by searching the MSDN library for the name of the object you are interested in.

For example, here are the search results for Msxml2.DOMDocument .

As you can see, this list is not very helpful.



You might think you can find tutorials about web concepts by focusing on a feature you're interested in, such as XML .

(Also, you should know that only Internet Explorer supports ActiveX controls ... and this IE will soon be replaced by Microsoft Edge, which does not support ActiveX controls. So it might be better to focus on cross-browser solutions, and not on your own.)

Hope it helps ...

- Lance

+5


source


ActiveXObject

can accept any type of file registered from a HKEY_CLASSES_ROOT

registry key , which are essentially program identifiers, class identifiers, and interfaces. You can even add your own extensions .



For more information, you can check the MSDN ActiveXObject Documentation and the HKEY_CLASSES_ROOT Key documentation .

+1


source


You can use Nirsoft ActiveX Helper , which shows a list of registered ActiveX components on your system. Anything that matters in the ProgID column can be passed to new ActiveXObject

(with or without version number):

var wdApp = new ActiveXObject('Word.Application.14');
var wdApp2 = new ActiveXObject('Word.Application');

      

0


source







All Articles