I have created an application that uses Microsoft.Office.Interop.Excel, in my local and testing environments everything worked fine, but the app does not work in the production environment.
Turns out I have Office installed locally, as does the Test server, however, the production server does not have Excel installed.
I really can’t go back and change my code, however, I would really not like to have to install Excel on the production server.
Do I have any other options other than installing Office Excel on the production server to get the application working?
Thanks, Appreciate your assistance. Steven
Office Interop does require that Office be installed on the server.
In the more general case, you do not need Excel to create worksheets, and you should avoid any solution that requires it for web use. That includes office interop: it doesn’t scale in a web environment.
See this question for more options:
Generating an Excel file in ASP.NET