PivotSection object, ChartSection object
Sets a separate refresh frequency for each Pivot and Chart in a document. When the Query is processed, Reports are populated with data according to their refresh frequencies. There are three methods available for refreshing reports: After Process, OnActivate and Manually. These options are mutually exclusive. An additional option, the RefreshDataNow (Method). This method is only available when Manually is the selected option.
Refresh options are set on a per-report basis. For example, to refresh ten Pivot reports when they are activated, set the When Section Displayed option for each report. |
The BqRefreshData constant group consists of these values:
In this example, a request is made to manually refresh the Pivot section, after which an immediate refresh to the current section is invoked:
//Manual Refresh of Data ActiveDocument.Sections["Pivot"].RefreshData=bqRefreshDataManually ActiveDocument.Sections["Pivot"].RefreshDataNow()
In this example, a request is made to establish an automatic link to the Results section to update the report whenever the query is processed:
//Refresh Data After Processing ActiveDocument.Sections["Pivot"].RefreshData=bqRefreshDataAfterProcess
In this example, a request is made to refresh when the section is accessed and displayed: