Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

actxGetRunningServer

Handle to running instance of Automation server

Syntax

c = actxGetRunningServer(progid)

Description

example

c = actxGetRunningServer(progid) gets a reference to a running instance of the OLE Automation server. Returns a handle to the default interface of the server.

If the server specified by progid is not currently running or if the server object is not registered, then the function returns an error. If multiple instances of the server are running, then the operating system controls the behavior of this function.

Examples

collapse all

c = actxGetRunningServer('Excel.Application');
list = fieldnames(c);

Input Arguments

collapse all

Programmatic identifier, specified as a character vector.

The control or server vendor documentation specifies the ProgID. For MATLAB® progid values, see Programmatic Identifiers.

Example: 'Matlab.Application'

Output Arguments

collapse all

COM object, returned as a function handle.

Limitations

  • COM functions are available on Microsoft® Windows® systems only.

Introduced in R2007a

Was this topic helpful?