Yes no Example 2: This example launches a Microsoft Word application and creates a new document with some text content.
Like Visual Basic 6, JScript takes the ActiveXObject function one step further by adding a new parameter, servername.
Notice the hierarchical structure, where one method or property is actually an object that has its own methods and properties.
Class uses the syntax library.
Application", "myserver" return rsion; An error occurs if the specified remote server does not exist or cannot be found.
String that specifies the name of the server where the object should be created.For example, if a network share is named "myserverdprogram Files the value of servername should be "myserver." In addition, you can specify the location using DNS format or an IP address.Once an object is created, you refer to it in code using the object variable you defined.Examples: Example 1: This example shows how to open a Microsoft Excel application with the ActiveXObject method.Several applications (Microsoft Office Word, Microsoft Office Excel, Windows Media Player,.) provide OLE Automation objects to allow communication with them.String that specifies the class or type of the object.Application object, and its methods are used later.Application sible true; catch (e) alert (ssage else alert Your browser does not support this example.Object where library is the name of the application (e.g., Word, Excel) or library containing the object, and object is the type or class of the object to create.Servername (an optional argument) specifies the name of the server on which the object resides.