按栏目快速找到需要的在线工具。
JSON 解析、格式化、压缩、对比与实体生成。
Base64、URL、进制、哈希与 AES 加密工具。
DNS、SEO、HTTP、robots 与站点检查。
日期、计算器、健康与便民工具。
前端、编程、数据库与服务器教程。
11 个工具栏目,按使用场景分类。
日期:2014-05-17 浏览次数:21516 次
using Word = Microsoft.Office.Interop.Word; var app = new Word.Application(); var doc = app.Documents.Open("d:/test.docx"); app.ActiveDocument.Protect(Word.WdProtectionType.wdAllowOnlyReading, Password: "xxxx");
System.IO.FileInfo fi = new System.IO.FileInfo("c:/d.doc"); fi.Attributes = System.IO.FileAttributes.ReadOnly;