DeploymentOptions Method

Returns the distribution options for a report published to the IBM® Cognos® portal.

Syntax

Report.DeploymentOptions

Applies To

Report Object

Discussion

Use this method so that a report author can set the prompt properties and PDF options for a report published to the IBM Cognos portal. The report author must explicitly set up the deployment options for a report. These options are saved with the report.

Return Type

Object

Example

This example uses the DeploymentOptions method to set up the prompt properties for a report.

Sub Main()
   Dim objPPRep as Object
   Dim objDeploymentOptions as Object
   Set objPPRep = GetObject(,"CognosPowerPlay.Report")
   Set objDeploymentOptions = objPPRep.DeploymentOptions
   objDeploymentOptions.PromptForCurrency = True
   objDeploymentOptions.PromptForLongShortNames = True
   objDeploymentOptions.PromptForZeroSuppression = True
   objDeploymentOptions.PromptForSwapRowsAndColumns =
True
   objDeploymentOptions.PromptForDimension(1) = True
   objDeploymentOptions.PromptForDimension(2)= True
   objDeploymentOptions.PromptForDimension("Years")=
True
   objPPRep.Save 
   Set objDeploymentOptions = Nothing
   Set objPPRep = Nothing
End Sub

Related Topics