We recently upgraded from Excel 2007 to Excel 2010, and we found that existing code started to crash.
Exception Message:
Office has detected a problem with this file. To protect your computer, this file cannot be opened.
We traced this to the line where we open the file
excelApp.Workbooks.Open
Even when you open the file manually, the protected view of Messagebox opens.
How can we work with this with C #.
source
share