禁用顶级菜单选项VB.NET中ms word文件的文件,HOME,INSERT,DESIGN,PAGE LAYOUT等 [英] Disable top menu options e.g. FILE, HOME, INSERT, DESIGN, PAGE LAYOUT etc of ms word file in VB.NET

查看:130
本文介绍了禁用顶级菜单选项VB.NET中ms word文件的文件,HOME,INSERT,DESIGN,PAGE LAYOUT等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想用vb.net打开word文档,需要禁用FILE,HOME,INSERT,DESIGN,PAGE LAYOUT等选项。



请建议使用vb.net代码禁用ms word / winword文件中的顶级菜单选项。



谢谢&此致,



Saurav Sinha



我的尝试:



我没有得到任何有用的链接。

解决方案

引用:

这篇文章的目的是没人能编辑/删除ms word文件的内容



然后不要提供Word文件!将其作为pdf提供。

引用:

没人可以创建此ms word文件的副本。



一旦显示在屏幕上,就不可能。

用户只需使用Capture工具制作屏幕副本。

并且无法阻止用户复制其PC上的文件。

Quote:

请建议使用vb.net代码禁用ms word / winword文件中的顶级菜单选项。



它没用,最多会使合法用户烦恼。



[更新]

引用:

你能给我一个vb吗?网络代码禁用ms word文件中的另存为选项。



不可能中你不理解哪个词?

1)你的应用程序使用该文件启动winword并停用所有需要的东西:

用户只需要打开手动文件,他做他想做的一切。

2)文件嵌入自动启动宏

用户只需要禁用自动启动宏。

3)你已经锁定了winword,用户无法复制任何内容

Capture工具将生成文件的图片。

4)文件菜单被禁用

键盘快捷键仍在工作

...


据我所知,没有选项可以禁用Word中的常规菜单项。



如果您想禁止编辑,请使用密码保护您的文档:

选择另存为 - 工具 - 常规选项并设置要修改的密码但不是要打开的密码。



如果您需要进一步限制,例如禁止打印和复制文本,您必须选择其他文档格式支持像PDF这样的支持。



另请注意,一旦文件存储在本地,就可以复制它。没有办法避免这种情况。


Hi,

I want to open a word document using vb.net, need to disable options like FILE, HOME, INSERT, DESIGN, PAGE LAYOUT etc.

Kindly suggest vb.net code to disable top menu options in ms word/winword file.

Thanks & Regards,

Saurav Sinha

What I have tried:

I didn't get any useful links.

解决方案

Quote:

The purpose for this post is that nobody can edit/delete contents of ms word file


Then do not provide as a Word file ! Provide it as a pdf.

Quote:

nobody can create a copy of this ms word file.


As soon as it is displayed on screen, it is impossible.
The user just have to use the Capture tool to make copies of the screen.
And can't prevent the user from copying a file that is on its PC.

Quote:

Kindly suggest vb.net code to disable top menu options in ms word/winword file.


It is useless and at best it will annoy legitimate users.

[Update]

Quote:

Can you just provide me the vb.net code to disable "Save As" option in ms word file.


Which word you don't understand in 'it is impossible' ?
1) your app launch winword with the file and deactivate all what is needed:
The user only have to open the file manually and he do all what he wants.
2) the file embed an autostart macro
the user just have to disable the autostart macro.
3) you have locked winword, the user can't copy anything
The Capture tool will make pictures of the file.
4) File menu is disabled
keyboard shortcuts are still working
...


There are no options to disable general menu items in Word as far as I know.

If you want to disallow editing, protect your document with a password:
Select "Save As - Tools - General Options" and set a "Password to modify" but not a "Password to open".

If you need further restrictions like disallow printing and copying of text you have to choose another document format that supports such like PDF.

Note also that once a file has been stored locally, it can be copied. There is no method to avoid that.


这篇关于禁用顶级菜单选项VB.NET中ms word文件的文件,HOME,INSERT,DESIGN,PAGE LAYOUT等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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