Skip to content

Commit 0ef8f69

Browse files
committed
1011162: Addressed Review Comments.
1 parent eeb60f2 commit 0ef8f69

5 files changed

Lines changed: 14 additions & 19 deletions

Document-Processing-toc.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5212,16 +5212,16 @@
52125212
</li>
52135213
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-file">Save Excel Files</a>
52145214
<ul>
5215-
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/aws-s3-bucket">From AWS S3</a></li>
5216-
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/azure-blob-storage">From Azure Blob Storage</a></li>
5217-
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/google-cloud-storage">From Google Cloud Storage</a></li>
5215+
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/aws-s3-bucket">To AWS S3</a></li>
5216+
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/azure-blob-storage">To Azure Blob Storage</a></li>
5217+
<li><a href="/document-processing/excel/spreadsheet/react/save-excel-files/google-cloud-storage">To Google Cloud Storage</a></li>
52185218
</ul>
52195219
</li>
5220-
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/docker-deployment">Server Deployment</a>
5220+
<li>Server Deployment
52215221
<ul>
5222-
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/docker-deployment">How to Deploy Spreadsheet Docker Image Locally</a></li>
5223-
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-visual-studio">Deploy Spreadsheet Server Docker Image to Azure App Service using Azure CLI</a></li>
5224-
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-azure-cli">Deploy Spreadsheet Server to Azure App Service using Visual Studio</a></li>
5222+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/docker-deployment">Spreadsheet Server Docker Overview</a></li>
5223+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-visual-studio">Deploy Spreadsheet Docker to Azure App Service using Azure CLI</a></li>
5224+
<li><a href="/document-processing/excel/spreadsheet/react/server-deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-azure-cli">Publish Spreadsheet Server to Azure App Service using Visual Studio</a></li>
52255225
</ul>
52265226
</li>
52275227
<li><a href="/document-processing/excel/spreadsheet/react/worksheet">Worksheet</a></li>

Document-Processing/Excel/Spreadsheet/React/Server-Deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-azure-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ platform: document-processing
77
documentation: ug
88
---
99

10-
# Deploy Spreadsheet Server Docker Image to Azure App Service via CLI
10+
# Deploy Spreadsheet Docker to Azure App Service using Azure CLI
1111

1212
## Prerequisites
1313

Document-Processing/Excel/Spreadsheet/React/Server-Deployment/how-to-deploy-spreadsheet-server-to-azure-app-service-using-visual-studio.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ platform: document-processing
77
documentation: ug
88
---
99

10-
# Deploy Spreadsheet Server to Azure App Service from Visual Studio
10+
# Publish Spreadsheet Server to Azure App Service using Visual Studio
11+
1112

1213
## Prerequisites
1314

Document-Processing/Excel/Spreadsheet/React/open-excel-file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For a quick walkthrough on how the open functionality works, refer to the follow
2020

2121
In user interface you can open an Excel document by clicking `File > Open` menu item in ribbon.
2222

23-
The following sample shows the `Open` option by using the [`openUrl`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#openurl) property in the Spreadsheet control. You can also use the [`beforeOpen`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#beforeopen) event to trigger before opening an Excel file.
23+
The following sample shows the `Open` option by using the [`openUrl`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#openurl) property in the Spreadsheet control. You can also use the [`beforeOpen`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#beforeopen) event to customize or cancel the import action, which gets triggerred before opening an Excel file.
2424

2525
{% tabs %}
2626
{% highlight js tabtitle="app.jsx" %}
@@ -489,6 +489,7 @@ public IActionResult Open(IFormCollection openRequest)
489489
OpenRequest open = new OpenRequest();
490490
open.AllowExternalWorkbook = false;
491491
open.File = openRequest.Files[0];
492+
open.Guid = openRequest["Guid"];
492493
return Content(Workbook.Open(open));
493494
}
494495
```

Document-Processing/Excel/Spreadsheet/React/save-excel-file.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ For a quick walkthrough on how the save functionality works, refer to the follow
2020

2121
In user interface, you can save Spreadsheet data as Excel document by clicking `File > Save As` menu item in ribbon.
2222

23-
The following sample shows the `Save` option by using the [`saveUrl`](https://ej2.syncfusion.com/documentation/api/spreadsheet/index-default#saveurl) property in the Spreadsheet control. You can also use the [`beforeSave`](https://ej2.syncfusion.com/documentation/api/spreadsheet/index-default#beforesave) event to trigger before saving the Spreadsheet as an Excel file.
23+
The following sample shows the `Save` option by using the [`saveUrl`](https://ej2.syncfusion.com/documentation/api/spreadsheet/index-default#saveurl) property in the Spreadsheet control. You can also use the [`beforeSave`](https://ej2.syncfusion.com/documentation/api/spreadsheet/index-default#beforesave) event to customize or cancel the save action which gets triggerred before saving the Spreadsheet as an Excel file.
2424

25-
{% tabs %}
25+
{% tabs %}
2626
{% highlight ts tabtitle="index.ts" %}
2727
{% include code-snippet/spreadsheet/javascript-es6/open-save-cs5/index.ts %}
2828
{% endhighlight %}
@@ -153,19 +153,13 @@ By default, the Spreadsheet control saves the Excel file and downloads it to the
153153
**Server Endpoint**:
154154
155155
```csharp
156-
157156
public string Save(SaveSettings saveSettings)
158157
{
159-
ExcelEngine excelEngine = new ExcelEngine();
160-
IApplication application = excelEngine.Excel;
161158
try
162159
{
163-
164160
// Save the workbook as stream.
165161
Stream fileStream = Workbook.Save<Stream>(saveSettings);
166-
// Using XLSIO, we are opening the file stream and saving the file in the server under "Files" folder.
167162
// You can also save the stream file in your server location.
168-
IWorkbook workbook = application.Workbooks.Open(fileStream);
169163
string basePath = _env.ContentRootPath + "\\Files\\" + saveSettings.FileName + ".xlsx";
170164
var file = System.IO.File.Create(basePath);
171165
fileStream.Seek(0, SeekOrigin.Begin);
@@ -180,7 +174,6 @@ By default, the Spreadsheet control saves the Excel file and downloads it to the
180174
return ex.Message;
181175
}
182176
}
183-
184177
```
185178
186179
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

Comments
 (0)