I am writing an application that has to write a value to a cell in an excel spreadsheet. I am able to open the workbook, but it always opens in read-only mode. My code is
myExcelApp = new Excel.ApplicationClass();
myExcelApp.Visible = false;
Excel.Workbook myExcelWorkbooks = myExcelApp.Workbooks.Open(fileName, misValue, **false**, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
Third argument is read-only which I have assigned as false. But still myExcelWorkbooks.readOnly
shows only True
.
Can someone help me out of this?