如果您使用的电脑要操作的是office2003而之前使用过office2007使用此方法可解决您的问题 无法将类型为“Microsoft.Office.Interop.Excel.ApplicationClass”的 COM 对象强制转换为接口类型“Microsoft.Office.Interop.Excel._Application”.此操作失败的原因是对 IID 为“{000208D5-0000-0000-C000-000000000046}”的接口的 COM 组件调用 QueryInter
https://docs.microsoft.com/en-us/javascript/api/excel/excel.application?view=office-js Represents the Excel application that manages the workbook. [ API set: ExcelApi 1.1 ] Extends OfficeExtension.ClientObject Properties calculationMode Returns the c