[Vuejs]-IIS is returning JSON instead of File (in Export to Excel functionality)

-1👍

You can try my way:

return File(bytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                reportFilename + "." + extension)

Leave a comment