I can open a Word document as readonly so the [Read-only] shows but I want to disable the editing too. Is there additional options to stop people from being able to edit the document?
Comments: ** Comment from web user: ekirk0 **
Comments: ** Comment from web user: ekirk0 **
Apply protection mode.
```
NetOffice.WordApi.Application app = new NetOffice.WordApi.Application();
app.DisplayAlerts = NetOffice.WordApi.Enums.WdAlertLevel.wdAlertsNone;
app.Visible = true;
NetOffice.WordApi.Document doc = app.Documents.Open(filename, false, true);
doc.Protect(NetOffice.WordApi.Enums.WdProtectionType.wdAllowOnlyReading, false, "password");
```
```
NetOffice.WordApi.Application app = new NetOffice.WordApi.Application();
app.Visible = true;
NetOffice.WordApi.ProtectedViewWindow window = app.ProtectedViewWindows.Open(filename);
```