Skip to content

Commit 230db4b

Browse files
1011997: Modified documentation for saving Excel to Google Drive
Updated the description and instructions for saving an Excel file to Google Drive in React Spreadsheet control.
1 parent 5c269f5 commit 230db4b

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Document-Processing/Excel/Spreadsheet/React/Save-Excel-File/to-google-drive.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
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.
55
platform: document-processing
66
control: Save file to Google Drive
77
documentation: ug
@@ -55,8 +55,6 @@ public SpreadsheetController(IConfiguration configuration)
5555

5656
```
5757

58-
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own.
59-
6058
* Create the `SaveExcelToGoogleDrive()` method to save the document to the Google Drive.
6159

6260
```csharp
@@ -139,8 +137,6 @@ public async Task<IActionResult> SaveExcelToGoogleDrive([FromForm] SaveSettings
139137

140138
```
141139

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-
144140
* Open the `appsettings.json` file in your web service project, Add the following lines below the existing `"AllowedHosts"` configuration
145141

146142
```json
@@ -160,7 +156,7 @@ N> You can also refer to this [GitHub](https://github.com/SyncfusionExamples/syn
160156

161157
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.
162158

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

165161
```typescript
166162
<button class="e-btn" onClick={saveToGoogleDrive}>
@@ -199,4 +195,6 @@ const saveToGoogleDrive = () => {
199195
};
200196
```
201197

202-
N> The Google.Apis.Drive.v3 NuGet package must be installed in your application to use the previous code example.
198+
N> The Google.Apis.Drive.v3 NuGet package must be installed in your application to use the previous code example.
199+
200+
[View sample in GitHub](https://github.com/SyncfusionExamples/syncfusion-react-spreadsheet-google-drive-integration)

0 commit comments

Comments
 (0)