The easiest way is to create a CSV file that can be opened directly using Excel.
Alternatively, you can use COM Interop to generate Excel files.
Data is transferred from the view to the controller method in the usual way. If you need help getting a collection of strings from a view, see here .
, FileResult.