Excel file generation on server without Excel installed
问题 I am using Microsoft.Office.Interop.Excel and generating Excel files using the SaveAs method. This all works correctly on computer with Excel installed. However, my server does not have Excel installed. How can I generate my files? 回答1: If you generate a file using Interop you need to install Excel on the server. Microsoft doesn't support installing Excel (or Word) on the server. Instead you should download the Office Open XML SDK from Microsoft and use that library to generate Excel 2007