“You are not allowed to edit this selection because it is protected.” but only since Office 2013?

后端 未结 8 1627
我寻月下人不归
我寻月下人不归 2021-02-19 20:07

We\'ve had these few lines of code running happily in our applications for several years (and in several versions of Office, 2003, 2007, 2010 etc). Purpose is to perform a kind

8条回答
  •  野的像风
    2021-02-19 20:37

    When you open a document, specify that it should not be opened as read-only

    object readOnly = false; 
    doc = word.Documents.Open(ref path, ref miss, ref readOnly, ...);
    

提交回复
热议问题