How do I make a Microsoft Word document “read only” within a SharePoint document library?

家住魔仙堡 提交于 2019-12-24 07:10:12

问题


How do I make open “read only” the only option within a SharePoint document library?

When using either Word 2003 or 2007 and saving the document as a template or modifying the file properties as “read only” doesn’t prevent modification of the file in a SharePoint document library. Modifying the document library permissions to only allow “read only” access doesn’t work either. What works is to use a SharePoint URL link list to access the files within an external server directory, but that defeats the use of a SharePoint document library.


回答1:


I don't know if you can force read only to be the only option, but you can implement your own event handler to override the ItemUpdating event. Just cancel the update and any changes will be discarded.

Sahil shows a very basic event handler that performs the cancel here.




回答2:


The event handler works, but I have found a simpler workaround.

If you “Check Out” the file and leave it checked out, no one else has the option to edit the file. This is still not ideal, but for forcing a document to be “read only” it works.



来源:https://stackoverflow.com/questions/86033/how-do-i-make-a-microsoft-word-document-read-only-within-a-sharepoint-document

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!