COMException: 异常来自 HRESULT:0x800AC472 StackTrace: 在 Microsoft.Office.Interop.Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS) 在 DynamicClass.ExcelWriter.WriteOnlyTargetFile(DataTable dt, String fullPath) 在 DynamicClass.ExcelWriter.<>c__DisplayClass3.<Exec>b__0() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Threading.ThreadHelper.ThreadStart()