I have a datatable which contain image path ,i want export to excel
my datatable is below

I have a datatable which contain image path ,i want export to excel
my datatable is below

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek YadavPosted Sep 1, 2023, 6:16 AM
To export a datatable to an Excel file using C# in ASP.NET, you can make use of the EPPlus library. Here's an example:
First, install the EPPlus NuGet package in your project.
Add the following using statements at the top of your code file:
ExportToExcelmethod with your datatable as the parameter:When you call the
ExportToExcelmethod, it will create an Excel file with the datatable's data and start downloading it to the user's browser. The file will be named "exported_data.xlsx".Vishal YelvePosted Sep 1, 2023, 5:47 AM
HI Sandeep,
You can use Open XML to download datatable data in excel
Do refer below links
https://www.aspsnippets.com/Articles/Export-GridView-Data-to-Excel-using-OpenXml-in-ASPNet.aspx
https://stackoverflow.com/questions/11811143/export-datatable-to-excel-with-open-xml-sdk-in-c-sharp