Hi all,
I am doing some excel automation from my windows application. From the code, I open an Excel Workbook, write into it, and then close it while saving it. Is it possible to make this file or workbook readonly It should be strictly readonly and nobody should be able to modify it, even by doing a right click and unchecking the Read Only checkbox from the Properties.
This is what I tried but didnt work:
m_objBook.ChangeFileAccess(Excel.
XlFileAccess.xlReadOnly, Type.Missing, false);m_objBook.Close(
true, savePath, Type.Missing);