createAutomationObject

createAutomationObject(): IDispatch;

The createAutomationObject method of the ActiveXAutomation class creates an instance of the ActiveX automation object defined by the receiver. For details about attempting to attach to an instance of the automation server that is already running, see "attachAutomationObject".

Your code must explicitly call this method before the first property access or method call. (If you want to specify a remote server or that the ActiveX automation object is executed on the application server, set the appropriate remoteServerName or usePresentationClient property before you call this method.)