ShowAsChart (Method)

Applies To:

OLAPQuery object

Description:

Charts the OLAPQuery data set, and creates an OLAPChart and OLAPResults section automatically.

Syntax:

Expression.ShowAsChart() 

Example:

The following script was associated with a OnClick event. When the user clicks a command button, the OLAPQuery is charted and an OLAPResults and OLAPChart are created automatically:

ActiveDocument.Sections["OLAPQuery"].ShowAsChart()