|
3 | 3 | [](https://supportcenter.devexpress.com/ticket/details/T501894)
|
4 | 4 | [](https://docs.devexpress.com/GeneralInformation/403183)
|
5 | 5 | <!-- default badges end -->
|
6 | | -<!-- default file list --> |
7 | | -*Files to look at*: |
| 6 | + |
| 7 | +# Spreadsheet Document API - Manage Pivot Tables in Code |
| 8 | + |
| 9 | +This example demonstrates how to use the <a href="https://docs.devexpress.com/OfficeFileAPI/14912/Spreadsheet-Document-API">Spreadsheet Document API</a> to create and modify pivot tables in code.<br>The application uses the [RichEditControl](https://docs.devexpress.com/WindowsForms/DevExpress.XtraRichEdit.RichEditControl) to display and edit the code. The code modifies the spreadsheet document loaded into the [Workbook](https://docs.devexpress.com/OfficeFileAPI/DevExpress.Spreadsheet.Workbook) instance. To see the results, open the document in Microsoft Excel by clicking the button.<br>You can modify the code and watch the result. If an error occurs during compilation or execution, the background color of the code window changes. |
| 10 | + |
| 11 | +The <strong>Universal Subscription</strong> or an additional <strong>Office File API Subscription</strong> is required to use this example in production code. Please refer to the <a href="https://www.devexpress.com/Buy/NET/">DevExpress Subscription</a> page for pricing information. |
| 12 | + |
| 13 | +## Files to Look At: |
8 | 14 |
|
9 | 15 | * [PivotCalculatedFieldActions.cs](./CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotCalculatedFieldActions.cs) (VB: [PivotCalculatedFieldActions.vb](./VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotCalculatedFieldActions.vb))
|
10 | 16 | * [PivotCalculatedItemActions.cs](./CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotCalculatedItemActions.cs) (VB: [PivotCalculatedItemActions.vb](./VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotCalculatedItemActions.vb))
|
|
15 | 21 | * [PivotTableFormattingActions.cs](./CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableFormattingActions.cs) (VB: [PivotTableFormattingActions.vb](./VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableFormattingActions.vb))
|
16 | 22 | * [PivotTableLayoutActions.cs](./CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableLayoutActions.cs) (VB: [PivotTableLayoutActions.vb](./VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableLayoutActions.vb))
|
17 | 23 | * [ValueFieldSettingsActions.cs](./CS/SpreadsheetDocServerPivotAPI/CodeExamples/ValueFieldSettingsActions.cs) (VB: [ValueFieldSettingsActions.vb](./VB/SpreadsheetDocServerPivotAPI/CodeExamples/ValueFieldSettingsActions.vb))
|
18 | | -<!-- default file list end --> |
19 | | -# Spreadsheet Document API - Manage Pivot Tables in Code |
20 | | - |
21 | | - |
22 | | -This example demonstrates how to use the <a href="https://documentation.devexpress.com/OfficeFileAPI/14912/Spreadsheet-Document-API">Spreadsheet Document API</a> to create and modify pivot tables in code.<br>The application uses the <a href="https://documentation.devexpress.com/#WindowsForms/CustomDocument6975">RichEditControl</a> to display and edit the code. The code modifies the spreadsheet document loaded into the <a href="https://documentation.devexpress.com/OfficeFileAPI/DevExpress.Spreadsheet.Workbook.class">Workbook</a> instance. To see the results, open the document in Microsoft Excel by clicking the button.<br>You can modify the code and watch the result. If an error occurs during compilation or execution, the background color of the code window changes.<br><br>The<strong> Universal Subscription</strong> or an additional <strong>Office File API Subscription</strong> is required to use this example in production code. Please refer to the <a href="https://www.devexpress.com/Buy/NET/">DevExpress Subscription</a> page for pricing information. |
23 | | - |
24 | | -<br/> |
25 | 24 |
|
| 25 | +## Documentation |
26 | 26 |
|
| 27 | +* [Spreadsheet Pivot Tables](https://docs.devexpress.com/OfficeFileAPI/118492/spreadsheet-document-api/pivot-tables) |
| 28 | +* [Pivot Table Examples](https://docs.devexpress.com/OfficeFileAPI/118495/spreadsheet-document-api/examples/pivot-tables) |
0 commit comments