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. Image for the cookie policy date

Export Grid to Excel in AspNetCore

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

3 Replies

KK Karthick Kuppusamy Syncfusion Team 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: 

GW Gary Whiteside 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?


MF Mohammed Farook J Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon