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

后端 未结 8 1651
我寻月下人不归
我寻月下人不归 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:33

    We had some C# automation that worked fine with Word 2007/2010, but stopped with Word 2013 with the same "You are not allowed ..." warning.

    Following steps on this site solved the issue.

    Basically there are two settings to check:

    • File – Options – General. Uncheck “Open E-Mail attachments and other uneditable files in reading view”
    • File – Options – Trust Center – Trust Center Settings. Select Protected View, then clear all the checkboxes.

提交回复
热议问题