comCreateObject {rcom}R Documentation

Create COM Objects

Description

Creates a new COM object specified by its program identifier.

The object will be released automatically when the last reference to the object is removed. To speed up this process, assign some NULL value as soon as you don't need the object any more.

Usage

comCreateObject(progid)

Arguments

progid ProgId of COM object to create, e.g. "Excel.Application"

Value

comCreateObject returns an object of class "COMObject".

Author(s)

Thomas Baier

Examples

# start up excel
## Not run: x<-comCreateObject("Excel.Application")

# and make it visible
## Not run: comSetProperty(x,"Visible",TRUE)

# do something now...

[Package rcom version 2.2-1 Index]