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/Open-Excel-File/from-google-drive.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,15 @@ documentation: ug
11
11
12
12
To load a file from Google Drive in a Spreadsheet Component, you can follow the steps below
13
13
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
15
19
16
20
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.
17
21
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
19
23
20
24
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.
21
25
@@ -51,6 +55,8 @@ public SpreadsheetController(IConfiguration configuration)
51
55
52
56
```
53
57
58
+
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own
59
+
54
60
5. Create the `OpenExcelFromGoogleDrive()` method to open the document from the Google Drive.
55
61
56
62
```Csharp
@@ -138,7 +144,7 @@ public class FileOptions
138
144
139
145
N> Note: Install the Google.Apis.Drive.v3 NuGet package in the service project.
140
146
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.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/React/Save-Excel-File/to-google-drive.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,15 @@ documentation: ug
11
11
12
12
To save a file to Google Drive in a Spreadsheet Component, you can follow the steps below
13
13
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
15
19
16
20
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.
17
21
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
19
23
20
24
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.
21
25
@@ -51,6 +55,8 @@ public SpreadsheetController(IConfiguration configuration)
51
55
52
56
```
53
57
58
+
N> Note: Change your FolderId, CredentialPath, ApplicationName with your own.
59
+
54
60
5. Create the `SaveExcelToGoogleDrive()` method to save the document to the Google Drive.
55
61
56
62
```csharp
@@ -133,7 +139,7 @@ public async Task<IActionResult> SaveExcelToGoogleDrive([FromForm] SaveSettings
133
139
134
140
```
135
141
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
0 commit comments