---
title: "PivotTables.Add"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/pivottables/add/"
product: "Aspose.Cells for .NET API Reference"
description: "PivotTables method. Adds a PivotTable object from the specified PivotCache to a new worksheet"
---

## Add(PivotCache) {#add}

Adds a PivotTable object from the specified PivotCache to a new worksheet

```csharp
public PivotTable Add(PivotCache pivotCache)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pivotCache | PivotCache | The source data |

### See Also

* class [PivotTable](../../pivottable/)
* class [PivotCache](../../pivotcache/)
* class [PivotTables](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(PivotCache, string) {#add_3}

Adds a PivotTable object from the specified PivotCache to a new worksheet

```csharp
public PivotTable Add(PivotCache pivotCache, string tableName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pivotCache | PivotCache | The source data |
| tableName | String | PivotTable name |

### See Also

* class [PivotTable](../../pivottable/)
* class [PivotCache](../../pivotcache/)
* class [PivotTables](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(PivotCache, WebWorksheet, WebCell) {#add_1}

Adds a PivotTable object from the specified PivotCache to the specified worksheet

```csharp
public PivotTable Add(PivotCache pivotCache, WebWorksheet targetSheet, WebCell targetCell)
```

### See Also

* class [PivotTable](../../pivottable/)
* class [PivotCache](../../pivotcache/)
* class [WebWorksheet](../../webworksheet/)
* class [WebCell](../../webcell/)
* class [PivotTables](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(PivotCache, WebWorksheet, WebCell, string) {#add_2}

Adds a PivotTable object from the specified PivotCache to the specified worksheet

```csharp
public PivotTable Add(PivotCache pivotCache, WebWorksheet targetSheet, WebCell targetCell, 
    string tableName)
```

### See Also

* class [PivotTable](../../pivottable/)
* class [PivotCache](../../pivotcache/)
* class [WebWorksheet](../../webworksheet/)
* class [WebCell](../../webcell/)
* class [PivotTables](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


