CreatePresentation

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 IPresentation61 interface.

 

JavaScript

 

CreatePresentation(

       GroupID ,

       Description )

 

C#

 

IPresentation61 CreatePresentation(

       int GroupID = 0,

       string Description = "")

 

C++

 

HRESULT CreatePresentation(

      LONG_PTR GroupID,

      BSTR Description,

      IPresentation61** pIPresentation61)

 

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 IProjectTree61.CreateGroup.

§  Find the group, if you know the name, using IProjectTree61.FindItem.

§  Traverse the Tree using IProjectTree61 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

pIPresentation61

An IPresentation61, representing the newly created presentation.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.