Skip to content

DOCINFRA-2341_merged_using_automation #1116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
be6c6eb
Merge pull request #1099 from Syncfusion-Content/hotfix/hotfix-v29.2.4
SyncfusionBuild May 16, 2025
d86e647
Merge pull request #1105 from Syncfusion-Content/hotfix/hotfix-v29.2.4
SyncfusionBuild May 19, 2025
3e1753f
Merge pull request #1108 from Syncfusion-Content/hotfix/hotfix-v29.2.4
SyncfusionBuild May 19, 2025
86e268a
Updated content from gitea repository
DeepakRajSundar Jul 14, 2025
06e7716
updated the latest content
DeepakRajSundar Jul 14, 2025
6605853
Updated latest hotfix content
DeepakRajSundar Jul 23, 2025
b03b114
971729: Resolved sidebar contents aligned properly in UG documentation.
sameerkhan001 Jul 23, 2025
4cc64de
Merge pull request #1117 from syncfusion-content/971729
chinnumuniyappan Jul 23, 2025
487d8a5
969355-ug: Added getting started for OCR in Azure Kubernetes service.
sameerkhan001 Jul 24, 2025
bd4d0b4
969355-ug: Added proper Screenshot and deployment details.
sameerkhan001 Jul 24, 2025
5c3a74f
971891: Updated the proper code for HTML to PDF Azure Function Linux.
sameerkhan001 Jul 28, 2025
5c031d0
Merge pull request #1120 from syncfusion-content/971891
chinnumuniyappan Jul 28, 2025
fd45f9b
972104-ug: Added the UG for Support to add tags for the Nested list i…
sameerkhan001 Jul 28, 2025
9253246
972104-ug: Resolved the given feedback.
sameerkhan001 Jul 28, 2025
1bc178f
972104-ug: Resolved the given feedback.
sameerkhan001 Jul 28, 2025
a264cf2
972104-ug: updated
sameerkhan001 Jul 28, 2025
2bba5e9
IN-203970 Added the release notes MD file for v30.1.42 and correspond…
DeepakRajSundar Jul 28, 2025
0603202
Merge pull request #1121 from syncfusion-content/972104-ug
chinnumuniyappan Jul 29, 2025
4ee1ed6
Merge branch 'hotfix/hotfix-v30.1.37' of https://github.com/syncfusio…
sameerkhan001 Jul 30, 2025
8a61baf
Merge pull request #1119 from syncfusion-content/969355-ug
chinnumuniyappan Jul 30, 2025
e53b50d
963561-ug: Added UG documentation for changing the foreground color o…
sameerkhan001 Aug 4, 2025
ef3f085
963561-ug: Resolved the given feedback.
sameerkhan001 Aug 4, 2025
632902d
963561-ug: Resolved CI failures.
sameerkhan001 Aug 4, 2025
11024c7
Merge pull request #1128 from syncfusion-content/963561-ug
chinnumuniyappan Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
149 changes: 126 additions & 23 deletions Document-Processing-toc.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
---
title: Convert Excel to Image in ASP.NET Core | Syncfusion
description: Convert Excel to image in ASP.NET Core using .NET Core Excel library (XlsIO) without Microsoft Excel or interop dependencies.
platform: document-processing
control: XlsIO
documentation: UG
---

# Convert Excel document to Image in ASP.NET Core

Syncfusion<sup>&reg;</sup> XlsIO is a [.NET Core Excel library](https://www.syncfusion.com/document-processing/excel-framework/net) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to Image in ASP.NET Core**.

## Steps to convert Excel document to Image in ASP.NET Core

{% tabcontents %}

{% tabcontent Visual Studio %}

Step 1: Create a new ASP.NET Core Web application (Model-View-Controller) project.

![Create ASP.NET Core Web application in Visual Studio](ASP-NET-Core_images/ASP-NET-Core_images_img10.png)

Step 2: Install the [Syncfusion.XlsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).

![Install Syncfusion.XlsIORenderer.Net.Core NuGet Package](ASP-NET-Core_images/ASP-NET-Core_images_img12.png)

N> Starting with v16.2.0.x, if you reference Syncfusion<sup>&reg;</sup> assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion<sup>&reg;</sup> license key in your application to use our components.

Step 3: Include the following namespaces in the HomeController.cs file.

{% tabs %}

{% highlight c# tabtitle="C#" %}

using Syncfusion.XlsIO;
using Syncfusion.XlsIORenderer;

{% endhighlight %}

{% endtabs %}

Step 5: A default action method named Index will be present in HomeController.cs. Right click on Index method and select **Go To View** where you will be directed to its associated view page **Index.cshtml**.

Step 6: Add a new button in the Index.cshtml as shown below.

{% tabs %}

{% highlight c# tabtitle="C#" %}

@{
Html.BeginForm("ConvertExceltoImage", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Convert Excel to Image" style="width:200px;height:27px" />
</div>
}
Html.EndForm();
}

{% endhighlight %}

{% endtabs %}

Step 7: Add a new action method **ConvertExceltoImage** in HomeController.cs and include the below code snippet to **convert the Excel document to image**.

{% tabs %}

{% highlight c# tabtitle="C#" %}

using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
FileStream excelStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];

//Initialize XlsIO renderer.
application.XlsIORenderer = new XlsIORenderer();

//Create the MemoryStream to save the image.
MemoryStream imageStream = new MemoryStream();

//Save the converted image to MemoryStream.
worksheet.ConvertToImage(worksheet.UsedRange, imageStream);
imageStream.Position = 0;

//Download image in the browser.
return File(imageStream, "application/jpeg", "Sample.jpeg");
}

{% endhighlight %}

{% endtabs %}

{% endtabcontent %}

{% tabcontent Visual Studio Code %}

Step 1: Create a new ASP.NET Core Web application project.
* Open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and type **.NET:New Project** and enter.
* Choose the **ASP.NET Core Web App( Model-View-Controller) MVC** template.

![Choose ASP.NET Core Web app from template](ASP-NET-Core_images/ASP-NET-Core_images_img11.png)

* Select the project location, type the project name and press enter.
* Then choose **Create project**.

Step 2: To **convert a Excel document to image in ASP.NET Core Web app**, install [Syncfusion.XlsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core) to the ASP.NET Core project.
* Press <kbd>Ctrl</kbd> + <kbd>`</kbd> (backtick) to open the integrated terminal in Visual Studio Code.
* Ensure you're in the project root directory where your .csproj file is located.
* Run the command `dotnet add package Syncfusion.XlsIORenderer.Net.Core` to install the NuGet package.

![Add Syncfusion.XlsIORenderer.Net.Core NuGet package](ASP-NET-Core_images/ASP-NET-Core_images_img13.png)

N> Starting with v16.2.0.x, if you reference Syncfusion<sup>&reg;</sup> assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion<sup>&reg;</sup> license key in your application to use our components.

Step 3: Include the following namespaces in the HomeController.cs file.

{% tabs %}

{% highlight c# tabtitle="C#" %}

using Syncfusion.XlsIO;
using Syncfusion.XlsIORenderer;

{% endhighlight %}

{% endtabs %}

Step 4: A default action method named Index will be present in HomeController.cs. Right click on Index method and select **Go To View** where you will be directed to its associated view page **Index.cshtml**.

Step 5: Add a new button in the Index.cshtml as shown below.

{% tabs %}

{% highlight c# tabtitle="C#" %}

@{
Html.BeginForm("ConvertExceltoImage", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Convert Excel to Image" style="width:200px;height:27px" />
</div>
}
Html.EndForm();
}

{% endhighlight %}

{% endtabs %}

Step 6: Add a new action method **ConvertExceltoImage** in HomeController.cs and include the below code snippet to **convert the Excel document to image**.

{% tabs %}

{% highlight c# tabtitle="C#" %}

using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
FileStream excelStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];

//Initialize XlsIO renderer.
application.XlsIORenderer = new XlsIORenderer();

//Create the MemoryStream to save the image.
MemoryStream imageStream = new MemoryStream();

//Save the converted image to MemoryStream.
worksheet.ConvertToImage(worksheet.UsedRange, imageStream);
imageStream.Position = 0;

//Download image in the browser.
return File(imageStream, "application/jpeg", "Sample.jpeg");
}

{% endhighlight %}

{% endtabs %}

{% endtabcontent %}

{% endtabcontents %}

You can download a complete working sample from <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Getting%20Started/ASP.NET%20Core/ConvertExcelToImage">GitHub</a>.

By executing the program, you will get the **image** as follows.

![Excel to Image in ASP.NET Core](ASP-NET-Core_images/ASP-NET-Core_images_img14.png)

Click [here](https://www.syncfusion.com/document-processing/excel-framework/net-core) to explore the rich set of Syncfusion<sup>&reg;</sup> Excel library (XlsIO) features.

An online sample link to [convert an Excel document to Image](https://ej2.syncfusion.com/aspnetcore/Excel/WorksheetToImage#/material3) in ASP.NET Core.
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: Convert an Excel document to Image in ASP.NET MVC | Syncfusion
description: Convert an Excel document to Image in ASP.NET MVC using Sycfusion .NET Excel library (XlsIO) without Microsoft Excel or interop dependencies.
platform: document-processing
control: XlsIO
documentation: UG
---

# Convert an Excel document to Image in ASP.NET MVC

Syncfusion<sup>&reg;</sup> XlsIO is a [.NET Excel library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to Image in ASP.NET MVC**.

## Steps to convert an Excel document to Image in ASP.NET MVC

Step 1: Create a new ASP.NET Web Application Project.

![Create a ASP.NET Web App project in visual studio](ASP-NET-MVC_images\ASP-NET-MVC_images_img9.png)

Step 2: Name the project, choose the framework and click **Create** button.

![Name the project and choose the framework version](ASP-NET-MVC_images\ASP-NET-MVC_images_img10.png)

Step 3: Select the MVC application.

![Select the MVC App](ASP-NET-MVC_images\ASP-NET-MVC_images_img11.png)

Step 4: Install the [Syncfusion.XlsIO.AspNet.Mvc5](https://www.nuget.org/packages/Syncfusion.XlsIO.AspNet.Mvc5) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).

![Install Syncfusion.XlsIO.AspNet.Mvc5 NuGet Package](ASP-NET-MVC_images\ASP-NET-MVC_images_img12.png)

N> Starting with v16.2.0.x, if you reference Syncfusion<sup>&reg;</sup> assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion<sup>&reg;</sup> license key in your applications to use our components.

Step 5: Add a new button in the **Index.cshtml** as shown below.
{% tabs %}
{% highlight CSHTML %}
@{Html.BeginForm("ConvertExceltoImage", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Convert Excel to Image" style="width:150px;height:27px" />
</div>
}
Html.EndForm();
}
{% endhighlight %}
{% endtabs %}

Step 6: Include the following namespaces in **HomeController.cs**.
{% tabs %}
{% highlight c# tabtitle="C#" %}
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}

Step 7: Include the below code snippet in **HomeController.cs** to **convert an Excel document to Image**.
{% tabs %}
{% highlight c# tabtitle="C#" %}
public void ConvertExcelToImage()
{
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];

//Convert the Excel to Image
Image image = worksheet.ConvertToImage(1, 1, 20, 4);

//Save the image as jpeg
ExportAsImage(image, "ExcelToImage.Jpeg", ImageFormat.Jpeg, HttpContext.ApplicationInstance.Response);
}
}

protected void ExportAsImage(Image image, string fileName, ImageFormat imageFormat, HttpResponse response)
{
if (ControllerContext == null)
throw new ArgumentNullException("Context");
string disposition = "content-disposition";
response.AddHeader(disposition, "attachment; filename=" + fileName);
if (imageFormat != ImageFormat.Emf)
image.Save(Response.OutputStream, imageFormat);
Response.End();
}
{% endhighlight %}
{% endtabs %}

You can download a complete working sample from <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Getting%20Started/ASP.NET%20MVC/Convert%20Excel%20to%20Image">GitHub</a>.

By executing the program, you will get the **image** as follows.

![Output File](ASP-NET-MVC_images\ASP-NET-MVC_images_img13.png)

Click [here](https://www.syncfusion.com/document-processing/excel-framework/net-core) to explore the rich set of Syncfusion<sup>&reg;</sup> Excel library (XlsIO) features.

An online sample link to [convert an Excel document to Image](https://ej2.syncfusion.com/aspnetcore/Excel/WorksheetToImage#/material3) in ASP.NET Core.
Loading