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 IPresentation66 interface.
JavaScript |
|
CreatePresentation( GroupID, Description ) |
C# |
|
IPresentation66 CreatePresentation( [string GroupID = ""], [string Description = ""]) |
C++ |
|
HRESULT CreatePresentation( BSTR GroupID, BSTR Description, IPresentation66** pIPresentation66) |
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 IProjectTree66.CreateGroup.
· Find the group, if you know the name, using IProjectTree66.FindItem.
· Traverse the Tree using IProjectTree66 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
pIPresentation66
An IPresentation66, representing the newly created presentation.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.