[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPivotTables.Add

Add Method

Add(IPivotCache, IRange, string)

Adds a new PivotTable report.

Declaration
IPivotTable Add(IPivotCache PivotCache, IRange TableDestination, string TableName = null)
Function Add(PivotCache As IPivotCache, TableDestination As IRange, Optional TableName As String = Nothing) As IPivotTable
Parameters
Type Name Description
IPivotCache PivotCache

The PivotTable cache on which the new PivotTable report is based. The cache provides data for the report.

IRange TableDestination

The cell in the upper-left corner of the PivotTable report's destination range (the range on the worksheet where the resulting report will be placed). You must specify a destination range on the worksheet that contains the PivotTables object specified by expression.

string TableName

The name of the new PivotTable report.

Returns
Type Description
IPivotTable

PivotTable object.