Report Object
Syntax A
GetObject(pathname)
Syntax B
GetObject( , class )
Parameter |
Description |
---|---|
PathName |
Required. Specifies the path and file name for the object to retrieve. Type: String |
Class |
Required. Specifies a string containing the class of the object, "CognosPowerPlay.Report". Type: String |
Name |
Description |
---|---|
Sets the focus on the Report object. |
|
Adds a single blank row or column to a nested crosstab. |
|
Creates a CategoryList object used to identify categories to be inserted in the Report object. |
|
Gets the value of a cell in a Report object. |
|
Closes the Report object. |
|
Returns a collection that contains all the Column objects. |
|
Copies the Row, Column, or Layer objects currently selected in the Report object to the Clipboard. |
|
Moves the Row, Column, or Layer object currently selected in the Report object to the Clipboard. |
|
Deletes selected objects in a collection. |
|
Returns a DimensionLine object for the current Report object. |
|
Returns one Exception object or the entire collection. |
|
Finds the next matching category label in a report. |
|
Finds the previous matching category label in a report. |
|
Creates a specified number of forecast categories based on the existing time dimensions. |
|
Updates the data in the Report object. |
|
Returns one Graph object or the entire collection. |
|
Hides selected objects in a collection. |
|
Hides any object in a collection that is not selected. |
|
Returns one Layer object or the entire collection. |
|
Maximizes the Report object window. |
|
Minimizes the Report object window. |
|
Pastes the contents of the Clipboard into the selected categories of the Report object. |
|
Sets the file name of the PDF object when it is saved. |
|
Returns a Print object. |
|
Creates a report in the IBM Cognos Analytics content store. Users access the report using the Cognos Analytics portal. |
|
Returns a ReportQueries collection. |
|
Restores the Report object window to its original size and position. |
|
Returns one Row object or the entire collection. |
|
Saves one or all Report objects. |
|
Selects all the categories in the Report object. |
|
Applies a size to selected objects. |
|
Applies a style to the selected object. |
|
Exchanges the positions of the Column objects and Layer objects. |
|
Exchanges the positions of the Row objects and Column objects. |
|
Exchanges the positions of the Row objects and Layer objects. |
|
Makes all hidden categories visible. |
|
De-selects all the categories in the Report object. |
|
Updates a report previously published to the IBM Cognos Analytics content store. |
Name |
Description |
---|---|
Returns the Application object. |
|
Sets or returns whether automatic highlighting of exceptions is on or off. |
|
Sets or returns the exceptional highlighting sensitivity. |
|
Sets or returns whether calculated categories are on or off, or whether a PowerCube contains calculated categories. |
|
Returns the file name of the cube for the active report. |
|
Sets or returns whether the Report object is an Explorer or Reporter report. |
|
Sets or returns the text in the footer of a report. |
|
Returns the full name, including the location, of the Report object. |
|
Sets or returns whether the Report object retrieves data automatically each time it is modified. |
|
Sets or returns the text in the header of a report. |
|
Returns the position of the Report object in the Reports collection. |
|
Returns the name of the Report object. |
|
Returns the path of the Report object. |
|
Returns whether the Report object has been saved. |
|
Sets or returns whether open reports share a dimension line. |
|
Sets or returns how to show values in a report. |
|
Sets or returns the 80/20 suppress mode for report dimensions. |
|
Sets or returns the suppress mode for the Report object. |
|
Sets or returns the text in the title of a report. |
|
Sets or returns whether the Report object is visible to the user. |
Discussion
This object is the basis for building and managing a report. Use this object to set and operate on the attributes of a report. Each Report object is a separate PowerPlay® report.
Use the GetObject function when there is a current instance of the Report object or if you want to create the object with a file already loaded. If there is no current instance and you do not want the object started with a file loaded, use the CreateObject function.
Use only the following syntax to retrieve an existing PowerPlay report with the GetObject function. Using other syntax will cause an error.
Example
This example opens an IBM Cognos PowerPlay report and sets a number of properties.
Sub Main()
Dim objPPRep As Object
Set objPPRep = CreateObject ("CognosPowerPlay.Report")
objPPRep.Open ("C:\Cubes and Reports\Sample1.ppr")
objPPRep.ExplorerMode = True
objPPRep.Visible = True
objPPRep.ShowValuesAs = 2
objPPRep.ShareDimensionLine = 1
objPPRep.Suppress8020 = 3
objPPRep.SuppressZeros = 3
objPPRep.CalculatedCategories = True
Set objPPRep = Nothing
End Sub