如何仅保护word文档中的书签名称不被编辑? [英] How can I protect only the bookmark names in a word document from editing?
本文介绍了如何仅保护word文档中的书签名称不被编辑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我正在使用带有书签数量的word文档。我正在编写一些代码来填充数据库中的书签文本。我想保护书签名称不被编辑。但我不能。我只能通过以下代码保护整个文档
Hi
I am using a word document with number of bookmarks.I am writing some code to fill the bookmark text from the database.I wanted to protect the bookmark names from being edited. But I cant. I can only protect the whole document by the following code
Document.Protect(ProtectionType.Allow.....,"password");
给我解决方案只保护书签名称不被编辑。
"
Give me the solution to protect only the bookmark names from editing.
推荐答案
请阅读你的问题的评论。正如我所提到的,这取决于MS Word版本。
以下是一个想法:保护书签 [ ^ ]
如何:使用内容控件保护文档的各个部分 [ ^ ]
Please, read comments to your question. As i mentioned, it depends on MS Word version.
Here is an idea: Protecting Bookmarks[^]
How to: Protect Parts of Documents by Using Content Controls[^]
这篇关于如何仅保护word文档中的书签名称不被编辑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文