使用vb.net禁用MS Word中的工具栏功能 [英] Disable toolbar fuctionality in MS Word with vb.net

查看:86
本文介绍了使用vb.net禁用MS Word中的工具栏功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们

有谁知道如何使用VB.Net禁用MS Word 2007工具栏上的某些按钮?
我想用我的应用程序控制Word,以便最终用户在不使用我的应用程序的情况下无法关闭Word.
我还有另一个问题,如何关闭Word后不去任务管理器就杀死单词过程?

我用这个来关闭Word

Hi Guys

Does anyone know how can I disable some buttons on MS Word 2007 toolbar with VB.Net?
I want to control Word with my app so that the end user can''t close Word without using my app for instance.
And I have another problem, how do you kill the word process after you close Word without going to the Task Manager to do so?

I used this to close Word

objDoc.Close(Word.WdSaveOptions.wdDoNotSaveChanges)
objWordApp.Application.Quit()
objDoc = Nothing
objWordApp = Nothing

推荐答案

要关闭Word并最终使服务器退出,请阅读 [ [
For closing Word and getting the server to finally quit, read this[^].

As for controlling the menu items, I''ve never done Word automation, so I''m not the expert on it, but you might want to look at this[^].


这篇关于使用vb.net禁用MS Word中的工具栏功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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