0
如何处理异常的“C#”的错误,喜欢 - >Excel中:处理例外workbook.open
Code:
Workbooks.Open(folderPath,filename,Excel.XlPlatform.xlWindows,"",""....)
"System.Runtime.InteropServices.COMException (0x80070BBC): Office has detected a problem with this file. To help protect your computer this file cannot be opened.
at Excel.Workbooks.Open"
很少有过人之处没有错误的工作,但上面的错误少扔。 请建议一些答案。 谢谢。
感谢answer.I不'吨这样认为,这将我们work.How可以改变数据源吗? – user1495475
是的,很难更改数据源。但它是我建议的解决方案之一。 –