DefaultReportDirectory Property

Sets or returns the default path for IBM® Cognos® PowerPlay® report files.

Syntax

Application.DefaultReportDirectory

Applies To

Application Object

Discussion

After the directory is set, all macros will look for PowerPlay report files in that directory. Changes to the directory in the user interface will be reflected in the Application object, and vice versa.

Type

String

Access

Read/Write

Example

This example sets the default report directory to point to a subdirectory of the PowerPlay application directory. The report subdirectory, MyReportDirectory, must exist before you run this macro.

Sub Main()
   Dim objPPRep As Object
   Dim strReportDirectory as String 
   Set objPPRep = CreateObject("CognosPowerPlay.Report")
   strReportDirectory = objPPRep.Application.Path &
"\MyReportDirectory"
   objPPRep.Application.DefaultReportDirectory = strReportDirectory
   MsgBox "The default report directory is " _
       &objPPRep.Application.DefaultReportDirectory
   Set objPPRep = Nothing
End Sub

Related Topics