ClosedXML: Export To Excel not downloading the File MVC 4

user3289773

I have a List<T>, which I convert to a Datatable and then export that Datatable to Excel via Kingsoft-Spreadsheets using ClosedXML library.

However, for some reason the code is not working and the sheet is not getting downloaded. I am getting strange symbolic screen on my MVC view. I have attached the image for reference. Any help much appreciated.

enter image description here

user3289773

My bad, I was using ajax post back on Export Excel button click,there was no page postback.Acutally full page post back is required. I just added window.location.href with respective controller and action method and voila..its working fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Downloading excel file from web api using closedxml

From Dev

Excel File not downloading using AJAX in MVC4

From Dev

DataTables Export to Excel downloading a zip file

From Dev

Append to excel file with ClosedXML

From Dev

ClosedXML read from excel file

From Dev

Downloading Excel File

From Dev

href for downloading an excel file

From Dev

Reading from Excel File using ClosedXML

From Dev

How to count number of columns Excel file in ClosedXML?

From Dev

Add custom name of Export Excel in downloading

From Dev

Export filtered results to excel in MVC 4 (no web form)

From Dev

Kendo MVC - Export to Excel

From Dev

Export excel file from database through browser using mvc

From Dev

AngularJS Directive for downloading excel file

From Dev

MVC 4 Uploading Excel file to database

From Dev

c# Asp.NET MVC downloading excel file using FileStreamResult

From Dev

Export HTML table to Excel its downloading table contents to the Excel

From Dev

Export Jtable in excel file

From Dev

Export to Excel .xlsx File

From Dev

php export excel file

From Dev

export an excel file in php

From Dev

export text file excel

From Dev

How to append a new row to an Excel file using C# and ClosedXML?

From Dev

Error while saving modified excel(xlsx) file with ClosedXML

From Dev

Downloading Excel file from changing URL

From Dev

Downloading Excel file after creating using EPPlus

From Dev

downloading an excel file from the web in python

From Dev

Downloading Excel file xlsx in Angularjs and WebApi

From Dev

Downloading Excel File from XLConnect with R Shiny