开发者

How to prevent a user from Editing Word document loaded in DsoFramer using C#4.0?

开发者 https://www.devze.com 2023-03-09 13:23 出处:网络
We are developing C#.net 4.0 Windows Forms based application.we are using Dsoframer control to embed the Word document into my Application.Here, i want to prevent the user to edit the document.I have

We are developing C#.net 4.0 Windows Forms based application.we are using Dsoframer control to embed the Word document into my Application.Here, i want to prevent the user to edit the document.I have already opened Word Document in READ Only Mode.But still user can able to edit the doucment.Anyway, the updated content is not refelected in the original Document.But i would also开发者_高级运维 like to prevent the user to make such editing?


 wordDoc.Protect(Microsoft.Office.Interop.Word.WdProtectionType.wdAllowOnlyReading);

This is do that...

0

精彩评论

暂无评论...
验证码 换一张
取 消