The CreatePresentation method enables you to create an empty presentation. You can then add the steps to the presentation and set caption and playback properties using the IPresentation65 interface.
JavaScript |
|
CreatePresentation( GroupID, Description ) |
C# |
|
IPresentation65 CreatePresentation( [string GroupID = ""], [string Description = ""]) |
C++ |
|
HRESULT CreatePresentation( BSTR GroupID, BSTR Description, IPresentation65** pIPresentation65) |
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 IProjectTree65.CreateGroup.
· Find the group, if you know the name, using IProjectTree65.FindItem.
· Traverse the Tree using IProjectTree65 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
pIPresentation65
An IPresentation65, representing the newly created presentation.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.