I'm trying to write a code to read the excel to get row count and data. I'm getting an exception that the excel is encrypted or on read-only mode.
wb = xlApp.Workbooks.Open(srcFile, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",true, false, 0, true, false, false);
could anyone please provide some help in here.