Skip to content

Commit 8166b1f

Browse files
Apply suggestions from code review
Co-authored-by: Elena Khamliuk <80813840+khamlyuk@users.noreply.github.com>
1 parent d26c8aa commit 8166b1f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Blazor Pivot Table - Export Data to Excel Using Spreadsheet Document APIs
22

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.
44

55
> **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).
66
@@ -51,13 +51,13 @@ Add a [DevExpress Blazor Pivot Table](https://docs.devexpress.com/Blazor/405245/
5151

5252
### Add an Export Button
5353

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:
5555

5656
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).
5858
1. Create a `PivotTableExportConfig` object to store custom export options.
5959
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.
6161

6262
```Razor
6363
<DxButton Text="Export to Excel" Click="OnExportClick" />
@@ -108,7 +108,7 @@ To export our Blazor Pivot Table data to Excel, you must:
108108
}
109109
```
110110

111-
1. Iterate through dataset records and populate worksheet cells with corresponding values.
111+
1. Iterate through dataset records and populate worksheet cells with associated values.
112112

113113
```cs
114114
var dataList = data.ToList();
@@ -132,7 +132,7 @@ To export our Blazor Pivot Table data to Excel, you must:
132132
}
133133
```
134134

135-
1. Add a new worksheet and create a [Spreadsheet Pivot Table](https://docs.devexpress.com/OfficeFileAPI/118492/spreadsheet-document-api/pivot-tables) based on the data listed on the first worksheet.
135+
1. Add a new worksheet and create a [Spreadsheet Pivot Table](https://docs.devexpress.com/OfficeFileAPI/118492/spreadsheet-document-api/pivot-tables) based on data listed in the first worksheet.
136136
137137
```cs
138138
int lastRow = dataList.Count;
@@ -144,7 +144,7 @@ To export our Blazor Pivot Table data to Excel, you must:
144144
var pivotTable = pivotSheet.PivotTables.Add(sourceRange, pivotSheet["A1"]);
145145
```
146146

147-
1. To recreate Blazor Pivot Table layout, iterate through [persistent layout fields](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout.Fields) and add them to the corresponding Spreadsheet Pivot Table areas.
147+
1. To recreate the Blazor Pivot Table layout, iterate through [persistent layout fields](https://docs.devexpress.com/Blazor/DevExpress.Blazor.PivotTable.PivotTablePersistentLayout.Fields) and add them to the corresponding Spreadsheet Pivot Table areas.
148148
149149
```cs
150150
var layoutFields = layout.Fields

0 commit comments

Comments
 (0)