I try to open the Excel file by this code.But i got an error like this
Microsoft Excel cannot access the file 'C:\XXXXExcel.xlsx'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
Plz help me..
Microsoft.Office.Interop.Excel.Workbook workBook = app.Workbooks.Open(FilePath, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);