- If I opt for using Interop, does it require to have Excel installed on server-side?
- Are there any additional reasons why not to use Interop?
- Should I go for
System.Web.UI.WebControls.GridViewserver-side solution, populate it and write it in result? - Any other intelligent solution that preserves MVC logic and features?
If I opt for using Interop, does it require to have Excel installed on
Share
Yes, using interop will require Excel installed on the server side, and it’s a bad idea to run Excel on your server. Per Microsoft itself: http://support.microsoft.com/kb/257757
You can, however, create Excel workbooks server-side without using Excel interop. One solution to this is to use the OpenXML SDK (free), which will create an Excel file, in a manner very different than interop. There are also some open source projects and commercial solutions which allow you to do this. Searching for “create Excel file server” on StackOverflow will give you plenty of options.