Hide Method

Hides the category.

Syntax

object.Hide

Applies To

Column Object

Columns

Row Object

Rows

Discussion

Use this method to hide a single category or a collection of categories in a Report object. To reveal them, use the UnhideAllCategories method on the Report object. References to the position of an object in the collection are not valid after you use this method.

You cannot hide summary categories.

Return Type

Nothing

Example

This example opens a report and hides the column "Tents".

Sub Main()
   Dim objPPRep as Object
   Set objPPRep = CreateObject("CognosPowerPlay.Report")
   objPPRep.Open "C:\Cubes and Reports\Sample1.ppx"
   objPPRep.Columns.Item("Tents").Hide
   objPPRep.Save
   objPPRep.Close
End Sub

Related Topics