1

i am new with asp.net mvc4. I just want to create and download xlsx excel sheet in ASP.Net in MVC4. i searched much but i got nothing beneficial so an any one give me a piece of code to create and download xlsx file.

Thanks in advance

Muhammad Usman
  • 1,366
  • 5
  • 18
  • 33

1 Answers1

0

You would need a third party component to do that like Aspose, or possible through Office automation (which means you have to have a license for that). A tool is essentially your option. If you are OK with CSV, you can use this technique: Export gridview data into CSV file

Community
  • 1
  • 1
Brian Mains
  • 50,520
  • 35
  • 148
  • 257