Skip to content

Commit eb11dca

Browse files
committed
1011997: Need to include new UG section for open-save file from Google Drive
1 parent a647154 commit eb11dca

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

Document-Processing/Excel/Spreadsheet/React/Open-Excel-File/from-google-drive.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ documentation: ug
1111

1212
To load a file from Google Drive in a Spreadsheet Component, you can follow the steps below
1313

14-
**Step 1:** Create a Simple Spreadsheet Sample in React
14+
**Step 1:** Set up Google Drive API
15+
16+
You must set up a project in the Google Developers Console and enable the Google Drive API. Obtain the necessary credentials to access the API. For more information, view the official [link](https://developers.google.com/workspace/drive/api/guides/enable-sdk).
17+
18+
**Step 2:** Create a Simple Spreadsheet Sample in React
1519

1620
Start by following the steps provided in this [link](https://help.syncfusion.com/document-processing/excel/spreadsheet/react/getting-started) to create a simple Spreadsheet sample in React. This will give you a basic setup of the Spreadsheet component.
1721

18-
**Step 2:** Modify the `SpreadsheetController.cs` File in the Web Service Project
22+
**Step 3:** Modify the `SpreadsheetController.cs` File in the Web Service Project
1923

2024
1. Create a web service project in .NET Core 3.0 or above. You can refer to this [link](https://www.syncfusion.com/blogs/post/host-spreadsheet-open-and-save-services) for instructions on how to create a web service project.
2125

@@ -51,6 +55,8 @@ public SpreadsheetController(IConfiguration configuration)
5155

5256
```
5357

58+
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own
59+
5460
5. Create the `OpenExcelFromGoogleDrive()` method to open the document from the Google Drive.
5561

5662
```Csharp
@@ -138,7 +144,7 @@ public class FileOptions
138144

139145
N> Note: Install the Google.Apis.Drive.v3 NuGet package in the service project.
140146

141-
**Step 3:** Modify the index File in the Spreadsheet sample to make a fetch call to the server to retrieve and load the Excel file from the Google Drive into the client-side spreadsheet.
147+
**Step 4:** Modify the index File in the Spreadsheet sample to make a fetch call to the server to retrieve and load the Excel file from the Google Drive into the client-side spreadsheet.
142148

143149
```typescript
144150
<button className="e-btn" onClick={openFromGoogleDrive} style={{ marginLeft: '10px' }}>

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ documentation: ug
1111

1212
To save a file to Google Drive in a Spreadsheet Component, you can follow the steps below
1313

14-
**Step 1:** Create a Simple Spreadsheet Sample in React
14+
**Step 1:** Set up Google Drive API
15+
16+
You must set up a project in the Google Developers Console and enable the Google Drive API. Obtain the necessary credentials to access the API. For more information, view the official [link](https://developers.google.com/workspace/drive/api/guides/enable-sdk).
17+
18+
**Step 2:** Create a Simple Spreadsheet Sample in React
1519

1620
Start by following the steps provided in this [link](https://help.syncfusion.com/document-processing/excel/spreadsheet/react/getting-started) to create a simple Spreadsheet sample in React. This will give you a basic setup of the Spreadsheet component.
1721

18-
**Step 2:** Modify the `SpreadsheetController.cs` File in the Web Service Project
22+
**Step 3:** Modify the `SpreadsheetController.cs` File in the Web Service Project
1923

2024
1. Create a web service project in .NET Core 3.0 or above. You can refer to this [link](https://www.syncfusion.com/blogs/post/host-spreadsheet-open-and-save-services) for instructions on how to create a web service project.
2125

@@ -51,6 +55,8 @@ public SpreadsheetController(IConfiguration configuration)
5155

5256
```
5357

58+
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own.
59+
5460
5. Create the `SaveExcelToGoogleDrive()` method to save the document to the Google Drive.
5561

5662
```csharp
@@ -133,7 +139,7 @@ public async Task<IActionResult> SaveExcelToGoogleDrive([FromForm] SaveSettings
133139

134140
```
135141

136-
**Step 3:** Modify the index File in the Spreadsheet sample to using [`saveAsJson`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#saveasjson) method to serialize the spreadsheet and send it to the back-end
142+
**Step 4:** Modify the index File in the Spreadsheet sample to using [`saveAsJson`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#saveasjson) method to serialize the spreadsheet and send it to the back-end
137143

138144
```js
139145
<button class="e-btn" onClick={saveToGoogleDrive}>

0 commit comments

Comments
 (0)