Share via


PivotField.ServerBased Property

True if the data source for the specified PivotTable report is external and only the items matching the page field selection are retrieved. Read/write Boolean.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ServerBased As Boolean
    Get
    Set
'Usage
Dim instance As PivotField
Dim value As Boolean

value = instance.ServerBased

instance.ServerBased = value
bool ServerBased { get; set; }

Property Value

Type: System.Boolean

Remarks

This property doesn’t apply to OLAP data sources and is always False.

When this property is True, only records in the database that match the selected page field item are retrieved. From then on, whenever the user changes the page field selection, the newly selected page field item is passed to the query as a parameter, and the cache is refreshed.

This property cannot be set if any of the following conditions are true:

  • The field is grouped.

  • The data source isn’t external.

  • The cache is shared by two or more PivotTable reports.

  • The field is a data type that cannot be server based (a memo field or an OLE object).

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace