CreateFromStationery method

This method creates a new object from a Stationery object.

Syntax


C++
HRESULT CreateFromStationery(
   IERUStationery* pStationery,
   BSTR NewName,
   LONG CreateOptions,
   IERUItem** ppNewItem)
Scripting languages
Set NewItem = Object.CreateFromStationery(
   Stationery as IERUStationery,
   NewName as String,
   CreateOptions as Long)

Parameters


pStationery

The Stationery object to copy.

NewName

If not an empty string or NULL, this parameter overrides the default name for the new item. Note: this parameter is for future use. In v4.0, it must be empty or NULL [optional, default = empty string].

CreateOptions

One or more create options chosen from the enum ERUCreateOptions, logically OR'ed together. In v4.0, you must supply the value erCreateOptMakeNameUnique [optional, default=erCreateOptNone].

ppNewItem

Upon return, contains an IERUItem interface pointer to the newly-created object.

Return value


C++

The return code.

Scripting languages

Upon return, contains an IERUItem interface pointer to the newly-created object.

Remarks


The new object has the same name as the Stationery object, prepended by "New ".

Home

Interface

IERUContainer

 See also
Creating Items