如何使用word将表作为只读插入到单词中。互操作 [英] How insert a table as read only in word using word. Interop

查看:104
本文介绍了如何使用word将表作为只读插入到单词中。互操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用word.interop按代码插入一个表,但这必须是只读的。

这个表将进入Break页面。所以我需要知道怎么做。



我尝试过的事情:



我没有尝试任何东西,只是寻找信息

解决方案

据我所知 - 在Word 2010中它是不可能的......



As MSDN状态 [ ^ ]:

Word 2013:

您可以将文档标记为只读,但仍允许更改所选部分。



您可以制作这些不受限制的部分可供打开文档的任何人使用,或者您可以授予特定个人权限,以便只有他们才能更改文档的不受限制的部分。



请参阅:如何:以编程方式保护文档和文档部分 [ ^ ]


I have to insert a table, by code, using word.interop, but this have to be read only.
this table will be into a Break page. So I need to know how do that.

What I have tried:

I have not tried nothing, just looking for information

解决方案

As far as i know - up to Word 2010 it's impossible...

As MSDN states[^]:

Word 2013:

You can mark a document as read-only and still allow changes to selected parts.

You can make these unrestricted parts available for anyone who opens the document, or you can grant permission to specific individuals so that only they can change the unrestricted parts of the document.



See this: How to: Programmatically Protect Documents and Parts of Documents[^]


这篇关于如何使用word将表作为只读插入到单词中。互操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆