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: ej2-asp-core-mvc/spreadsheet/open-save.md
+12-23Lines changed: 12 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -249,19 +249,18 @@ The following code example shows how to open the spreadsheet data as base64 stri
249
249
250
250
### To open an Excel file located on a server
251
251
252
-
By default, the Spreadsheet component provides an option to browse files from the local file system and open them within the component. If you want to load an Excel file located on a server, you need to configure the server endpoint to fetch the Excel file from the server location, process it using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, and send it back to the client as `JSON data`. On the client side, you should use the `openFromJson` method to load that `JSON data` into the Spreadsheet component.
252
+
By default, the Spreadsheet control provides an option to browse files from the local file system and open them within the control. If you want to load an Excel file located on a server, you need to configure the server endpoint to fetch the Excel file from the server location, process it using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, and send it back to the client side as `JSON data`. On the client side, you should use the `openFromJson` method to load that `JSON data` into the Spreadsheet control.
// Processing the Excel file and return the workbook JSON.
@@ -276,11 +275,11 @@ By default, the Spreadsheet component provides an option to browse files from th
276
275
}
277
276
```
278
277
279
-
**Client-side code**:
278
+
**Client Side**:
280
279
281
280
```js
282
281
283
-
// Fetch call to server to load the Excel.
282
+
// Fetch call to server to load the Excel file.
284
283
fetch('https://localhost:{{Your port number}}/Home/Open', {
285
284
method:'POST',
286
285
headers: {
@@ -296,16 +295,11 @@ By default, the Spreadsheet component provides an option to browse files from th
296
295
297
296
```
298
297
299
-
You can find the server endpoint code to fetch and process the Excel file in this attachment(https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1_(1)-880363187).
300
-
301
-
After launching the server endpoint, you need to update the file fetch URL on the client-side sample as shown below.
298
+
You can find the server endpoint code to fetch and process the Excel file in this [attachment](https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1_(1)-880363187). After launching the server endpoint, you need to update the URL on the client side sample as shown below.
@@ -555,9 +549,9 @@ The following code example shows how to save the spreadsheet data as base64 stri
555
549
556
550
### To save an Excel file to a server location
557
551
558
-
By default, the spreadsheet saves the Excel file and downloads it to the local file system. If you want to save an Excel file to a server location, you need to configure the server endpoint to convert the spreadsheet data into a file stream and save it to the server location. On the client side, you must convert the spreadsheet data into `JSON` format using the `saveAsJson` method and send it to the server endpoint. On the server endpoint, you should convert the received spreadsheet `JSON` data into a file stream using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, convert the stream into an Excel file, and then save it to the server location.
552
+
By default, the Spreadsheet control saves the Excel file and downloads it to the local file system. If you want to save an Excel file to a server location, you need to configure the server endpoint to convert the spreadsheet data into a file stream and save it to the server location. To do this, first, on the client side, you must convert the spreadsheet data into `JSON` format using the `saveAsJson` method and send it to the server endpoint. On the server endpoint, you should convert the received spreadsheet `JSON` data into a file stream using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, then convert the stream into an Excel file, and finally save it to the server location.
559
553
560
-
**Client-side code**:
554
+
**Client Side**:
561
555
562
556
```js
563
557
@@ -580,7 +574,7 @@ By default, the spreadsheet saves the Excel file and downloads it to the local f
580
574
581
575
```
582
576
583
-
**Server endpoint code**:
577
+
**Server Endpoint**:
584
578
585
579
```csharp
586
580
@@ -591,9 +585,9 @@ By default, the spreadsheet saves the Excel file and downloads it to the local f
@@ -613,16 +607,11 @@ By default, the spreadsheet saves the Excel file and downloads it to the local f
613
607
614
608
```
615
609
616
-
You can find the server endpoint code to save the spreadsheet JSON data as an Excel file in the attached documentation(https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1_(1)-880363187).
617
-
618
-
After launching the server endpoint, you need to update the file fetch URL on the client-side sample as shown below.
610
+
You can find the server endpoint code to save the spreadsheet data as an Excel file in this [attachment](https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1_(1)-880363187). After launching the server endpoint, you need to update the URL on the client side sample as shown below.
0 commit comments