Skip to content

Commit 870d145

Browse files
committed
895411: Added content to the section.
1 parent 82b67f8 commit 870d145

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ej2-asp-core-mvc/spreadsheet/open-save.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ The following code example shows how to open the spreadsheet data as base64 stri
247247
{% endtabs %}
248248
{% endif %}
249249

250+
### To Open an Excel File from Blob Data
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 open an Excel file from `Blob data`, you need to fetch the `Blob data` from the server or another source and convert this `Blob data` into a `File` object. Then, you can use the `open` method in the Spreadsheet component to load that File object.
253+
254+
Please find the code to fetch the Blob data and load it into the Spreadsheet component below.
255+
250256
### External workbook confirmation dialog
251257

252258
When you open an excel file that contains external workbook references, you will see a confirmation dialog. This dialog allows you to either continue with the file opening or cancel the operation. This confirmation dialog will appear only if you set the `AllowExternalWorkbook` property value to **false** during the open request, as shown below. This prevents the spreadsheet from displaying inconsistent data.
@@ -492,6 +498,12 @@ The following code example shows how to save the spreadsheet data as base64 stri
492498
{% endtabs %}
493499
{% endif %}
494500

501+
### To Save an Excel File as Blob Data
502+
503+
By default, the spreadsheet saves the Excel file and downloads it to the local file system. If you want to save an Excel file as `Blob data`, you need to set `needBlobData` to **true** and `isFullPost` to **false** in the [beforeSave](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_BeforeSave) event. You will then receive the spreadsheet data as a Blob in the [saveComplete](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SaveComplete) event of the Spreadsheet component. You can post the `Blob data` to the server endpoint for saving.
504+
505+
Please find the code to get the Blob data from the Spreadsheet component below.
506+
495507
### Supported file formats
496508

497509
The following list of Excel file formats are supported in Spreadsheet:

0 commit comments

Comments
 (0)