To open an workbook in a excel file with excel.application.
If we use the component Microsoft.Office.interop.excel, we can create the excel work book and save it in a path. It provides another way to open an excel file and work book and work with that.
Following code can be used in this scenario.
objWb = (Excel._Workbook)(objXl.Workbooks.Open(MyFile, 0, false, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, false, false));
Here we need to do a type conversion to achieve this using Excel._Workbook.
objXl is the object of excel interop.