CreatePresentation
The CreatePresentation method enables you to create an empty presentation. You can then add actions and steps to the presentation using the IPresentation80 interface.
JavaScript |
|
CreatePresentation( GroupID, Description ) |
C# |
|
IPresentation80 CreatePresentation( string GroupID = "", string Description = "") |
C++ |
|
HRESULT CreatePresentation( BSTR GroupID, BSTR Description, IPresentation80** pIPresentation80) |
Parameters
GroupID
The Project Tree group in which the presentation is created. If it is set to zero, the presentation is created under the root. You can obtain the GroupID by one of the following methods:
· Create the group using IProjectTree80.CreateGroup.
· Find the group, if you know the name, using IProjectTree80.FindItem.
· Traverse the Tree using IProjectTree80 methods such as GetNextItem, until you come to the desired GroupID.
Description
The name of the presentation as it appears in the Project Tree. If an empty string is passed into this parameter, TerraExplorer assigns it a unique name.
Return Value
pIPresentation80
An IPresentation80, representing the newly created presentation.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.