除非在每次打开Word之前每次都删除normal.dot,否则Word Addin无法正常工作

编程入门 行业动态 更新时间:2024-10-11 23:17:01
本文介绍了除非在每次打开Word之前每次都删除normal.dot,否则Word Addin无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用Visual Studio 2008为Word创建了此加载项.该加载项在我第一次使用时效果很好,但是如果我关闭Word并再次打开它,则自定义"菜单栏和按钮会停止 如果我删除模板"normal.dot", (在用户/应用程序数据/Microsoft/Templates文件夹中),然后再次打开Word,我的加载项再次开始工作.结果,我正在使用一个批处理文件来立即运行我的插件.该批处理首先清理Templates文件夹,然后启动word. 还有其他替代方法或解决方法吗?我无法分发具有此缺陷的加载项,因为可能无法每次都要求用户删除其normal.dot....请帮助!

I've made this add-in for word with Visual Studio 2008.The Add-in works well the first time I use it, but if I close Word and open it again, the Custom menubar and buttons stop working.If I delete the template "normal.dot" (In the user/Application Data/Microsoft/Templates folder) and then open Word again, my add-in starts working again. As a result of this, I'm using a Batch file to run my addin right now; the batch first cleans the Templates folder and then launches word.Is there any other alternative or workaround? I can't distribute my add-in with this defect since couldnt possibly ask the users to delete their normal.dot every time.... Pls help!

推荐答案

将此问题发布在 用于Office的Visual Studio工具 ,您将获得更好的答案. Post this issue in Visual Studio Tools for Office and you can get better answer.

更多推荐

除非在每次打开Word之前每次都删除normal.dot,否则Word Addin无法正常工作

本文发布于:2023-11-23 01:11:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619569.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:每次都   无法正常   工作   Word   normal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!