Represents the memory cache for a PivotTable report.
public interface class PivotCache
[System.Runtime.InteropServices.Guid("0002441C-0000-0000-C000-000000000046")] [System.Runtime.InteropServices.InterfaceType(2)] public interface PivotCache
Public Interface PivotCache
The PivotCache object is a member of the PivotCaches collection.
Use the PivotCache() method to return a PivotCache object for a PivotTable report (each report has only one cache).
index is the PivotTable cache number, to return a single PivotCache object from the PivotCaches collection for a workbook.
Returns an ADO connection object if the PivotTable cache is connected to an OLE DB data source.
Returns an Application object that represents the Microsoft Excel application.
True if queries for the PivotTable report or query table are performed asynchronously (in the background).
Returns or sets the command string for the specified data source.
Returns or sets a constant describing the value type of the CommandText property. The default value is xlCmdSQL.
Returns or sets connection information for a PivotTable cache.
Returns a 32-bit integer that indicates the application in which this object was created.
True if the PivotTable cache or query table can be refreshed by the user. The default value is True.
Returns the index number of the object within the collection of similar objects.
Returns True if the MaintainConnection property is True and the PivotTable cache is currently connected to its source. Returns False if it is not currently connected to its source.
Returns or sets the connection string to an offline cube file.
True if the connection to the specified data source is maintained after the refresh and until the workbook is closed. The default value is True.
Returns the amount of memory in bytes currently being used by the object.
Returns or sets the maximum quantity of unique items per PivotTable field that are retained even when they have no supporting data in the cache records.
Returns True if the PivotTable cache is connected to an Online Analytical Processing (OLAP) server.
True if the PivotTable cache is optimized when it’s constructed. The default value is False.
Returns the parent object for the specified object.
Indicates the type of query used by Microsoft Excel to populate the PivotTable cache.
Returns the number of records in the PivotTable cache or the number of cache records that contain the specified item.
Returns or sets a Recordset object that’s used as the data source for the specified query table or PivotTable cache.
Returns the date on which the PivotTable cache was last refreshed.
Returns the name of the person who last refreshed the PivotTable cache.
True if the PivotTable cache is automatically updated each time the workbook is opened. The default value is False.
Returns or sets the number of minutes between refreshes.
Returns or sets how the PivotTable cache connects to its data source.
True if password information in an ODBC connection string is saved with the specified query. False if the password is removed.
Returns or sets a String indicating the Microsoft Office Data Connection file or similar file that was used to create the PivotTable.
Returns the data source for the PivotTable report.
Returns a String indicating the source data file for the cache of the PivotTable.
Returns a value that identifies the type of item being published.
Reserved for internal use.
True if the LocalConnection property is used to specify the string that enables Microsoft Excel to connect to a data source. False if the connection string specified by the Connection property is used.
Returns the version of Microsoft Excel in which the PivotCache was created. Read-only.
Establishes a connection between the current workbook and the PivotCache object. Read-only.
|CreatePivotChart(Object, Object, Object, Object, Object, Object)||
Creates a standalone PivotChart from a PivotCache object. A Shape object is returned.
|CreatePivotTable(Object, Object, Object, Object)||
Creates a PivotTable report based on a PivotCache object.
Establishes a connection for the specified PivotTable cache.
Updates the cache of the PivotTable object.
Resets the refresh timer for the specified PivotTable report to the last interval you set using the RefreshPeriod property.
|SaveAsODC(String, Object, Object)||
Saves the PivotTable cache source as a Microsoft Office Data Connection file.