We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export Grid to Excel in AspNetCore

Thread ID:





125280 Aug 4,2016 07:00 PM UTC Nov 11,2016 10:07 AM UTC ASP.NET Core 3
Tags: Grid
Diego Hoyos
Asked On August 4, 2016 07:00 PM UTC

With version14.2600.0.28-preview2-final how to export grid in Excel Format.

Karthick Kuppusamy [Syncfusion]
Replied On August 5, 2016 08:34 AM UTC

Hi Diego, 
Thanks for Contacting Syncfusion support. 
We have analyzed your requirement and we have created a sample for your requirement. 
Please find the code example excel export. 
public IActionResult ExportToExcel(string GridModel) 
            ExcelExport exp = new ExcelExport(); 
            var DataSource = order; 
            GridProperties obj = ConvertGridObject(GridModel); 
            GridExcelExport exc = new GridExcelExport(); 
            exc.Theme = "flat-saffron"; 
            exc.FileName = "Export.xlsx"; 
            return exp.Export(obj, DataSource, exc); 
Sample link: 

Gary Whiteside
Replied On November 10, 2016 11:32 AM UTC

I've currently got the following packages added to my project.json

"Syncfusion.EJ.AspNet.Core": "14.3600.0.49-preview2-final",
"Syncfusion.Pdf.AspNet.Core": "14.3600.0.49-preview2-final",

What additional packages do I need to add to get the export to Word, Excel and PDF to work?


Mohammed Farook J [Syncfusion]
Replied On November 11, 2016 10:07 AM UTC

Hi Diego,  
If you need to export option , please includes the following dll’s in your project. 
"Syncfusion.EJ.AspNet.Core": " 14.3600.0.49-preview2-final", 
    "Syncfusion.Pdf.AspNet.Core": " 14.3600.0.49-preview2-final", 
    "Syncfusion.DocIO.AspNet.Core": " 14.3600.0.49preview2-final", 
    "Syncfusion.XlsIO.AspNet.Core": " 14.3600.0.49-preview2-final", 
    "Syncfusion.EJ.Export": " 14.3600.0.49-preview2-final" 
J.Mohammed Farook 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon