更新时间:2023-02-04 15:15:25
p>除非您在服务器/ PC上安装了Excel或使用外部工具(可以不使用Excel Interop,请参阅从C#创建Excel(.XLS和.XLSX)文件),它将失败。 使用互操作需要安装Excel。
Unless you have Excel installed on the Server/PC or use an external tool (which is possible without using Excel Interop, see Create Excel (.XLS and .XLSX) file from C#), it will fail. Using the interop requires Excel to be installed.