How to open Excel file with Read Only protection?

前端 未结 2 655
攒了一身酷
攒了一身酷 2021-01-23 06:13

I have opened Excel file in my C# WinForm Application adding reference to Microsoft.Office.Interop.Excel.dll and using DSO FRAMER CONTROL. But i want to open my exc

2条回答
  •  佛祖请我去吃肉
    2021-01-23 06:39

    Call theOpen method with third parameter (ReadOnly) = true.

    See MSDN documentation :

    ReadOnly
    Optional Object. True to open the workbook in read-only mode.

提交回复
热议问题