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: Document-Processing/Excel/Spreadsheet/React/Save-Excel-File/to-google-drive.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
layout: post
3
3
title: Save excel to Google Drive in React Spreadsheet control | Syncfusion
4
-
description: Learn about how to Save an Excel file from Google Drive in React Spreadsheet control of Syncfusion Essential JS 2.
4
+
description: Learn about how to Save an Excel file to Google Drive from React Spreadsheet control of Syncfusion Essential JS 2.
5
5
platform: document-processing
6
6
control: Save file to Google Drive
7
7
documentation: ug
@@ -55,8 +55,6 @@ public SpreadsheetController(IConfiguration configuration)
55
55
56
56
```
57
57
58
-
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own.
59
-
60
58
* Create the `SaveExcelToGoogleDrive()` method to save the document to the Google Drive.
61
59
62
60
```csharp
@@ -139,8 +137,6 @@ public async Task<IActionResult> SaveExcelToGoogleDrive([FromForm] SaveSettings
139
137
140
138
```
141
139
142
-
N> You can also refer to this [GitHub](https://github.com/SyncfusionExamples/syncfusion-react-spreadsheet-google-drive-integration/tree/master) repository for reference.
143
-
144
140
* Open the `appsettings.json` file in your web service project, Add the following lines below the existing `"AllowedHosts"` configuration
145
141
146
142
```json
@@ -160,7 +156,7 @@ N> You can also refer to this [GitHub](https://github.com/SyncfusionExamples/syn
160
156
161
157
N> Replace the **credential path**, **folderId** and **application name** in json file with your actual Google drive folder ID , your name for your application and the path for the JSON file.
162
158
163
-
**Step 4:** Modify the index file in the Spreadsheet sample to save the file as json using the [`saveAsJson`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#saveasjson) method and send the JSON to the backend.
159
+
**Step 4:** Modify the index file in the Spreadsheet sample to save the Spreadsheet as JSON data using the [`saveAsJson`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#saveasjson) method and send the saved JSON to the server via fetch call.
0 commit comments