You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Blazor Pivot Table - Export Data to Excel Using Spreadsheet Document APIs
2
2
3
-
This example exports data from the [DevExpress Blazor Pivot Table](https://docs.devexpress.com/Blazor/405245/components/pivot-table) component to an Excel workbook. Once an export operation is complete, the application downloads the generated file directly in the browser.
3
+
This example exports data from the [DevExpress Blazor Pivot Table](https://docs.devexpress.com/Blazor/405245/components/pivot-table) component to an Excel workbook. Once an export operation is complete, the application downloads the generated file.
4
4
5
5
> **Note**: This example uses the [DevExpress Office File API](https://docs.devexpress.com/Blazor/404576/components/office-file-api) - a standalone library that allows you to read/write documents, spreadsheets, presentations, and PDF files. The DevExpress Office File API is included in the following subscriptions: [DevExpress Office File API Subscription](https://www.devexpress.com/products/net/office-file-api/) or [DevExpress Universal Subscription](https://www.devexpress.com/subscriptions/universal.xml).
6
6
@@ -51,13 +51,13 @@ Add a [DevExpress Blazor Pivot Table](https://docs.devexpress.com/Blazor/405245/
51
51
52
52
### Add an Export Button
53
53
54
-
Add a [DevExpress Blazor Button](https://docs.devexpress.com/Blazor/405052/components/utility-controls/button) to the page. Perform the following actions in the button's Click event handler:
54
+
Add a [DevExpress Blazor Button](https://docs.devexpress.com/Blazor/405052/components/utility-controls/button) to the page. Do the following in the button Click event handler:
55
55
56
56
1. Obtain the dataset bound to our Blazor Pivot Table.
57
-
1. Call the [DxPivotTable.SaveLayout](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.DxPivotTable.SaveLayout) method to obtain persisted layout information (a [PivotTablePersistentLayout](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout) object).
57
+
1. Call the [DxPivotTable.SaveLayout](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.DxPivotTable.SaveLayout) method to retrieve persisted layout information (a [PivotTablePersistentLayout](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout) object).
58
58
1. Create a `PivotTableExportConfig` object to store custom export options.
59
59
1. Pass dataset, layout information, and export options to the export engine.
60
-
1. Once the engine returns a generated Excel document, download it to the user's machine.
60
+
1. Once the export engine returns a generated Excel document, download it to the user machine.
61
61
62
62
```Razor
63
63
<DxButton Text="Export to Excel" Click="OnExportClick" />
@@ -108,7 +108,7 @@ To export our Blazor Pivot Table data to Excel, you must:
@@ -132,7 +132,7 @@ To export our Blazor Pivot Table data to Excel, you must:
132
132
}
133
133
```
134
134
135
-
1. Addanewworksheetandcreatea [SpreadsheetPivotTable](https://docs.devexpress.com/OfficeFileAPI/118492/spreadsheet-document-api/pivot-tables) based on the data listed on the first worksheet.
135
+
1. Addanewworksheetandcreatea [SpreadsheetPivotTable](https://docs.devexpress.com/OfficeFileAPI/118492/spreadsheet-document-api/pivot-tables) based on data listed in the first worksheet.
136
136
137
137
```cs
138
138
intlastRow=dataList.Count;
@@ -144,7 +144,7 @@ To export our Blazor Pivot Table data to Excel, you must:
1. TorecreateBlazorPivotTablelayout, iteratethrough [persistentlayoutfields](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout.Fields) and add them to the corresponding Spreadsheet Pivot Table areas.
147
+
1. TorecreatetheBlazorPivotTablelayout, iteratethrough [persistentlayoutfields](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout.Fields) and add them to the corresponding Spreadsheet Pivot Table areas.
0 commit comments