word文档保护问题

liangjuan01 2007-12-07 04:29:38
我在word控件中 调用 spDoc->Protect(MSWord::wdAllowOnlyReading, &vtMissing, &vPass);
可以实现 文档保护, 但是 在保护状态下 多按几下键盘的键 就出现如下异常, 请问这是什么原因啊,高手们帮帮忙啊!
谢谢了!

『异常信息:
Runtime Error!

Program: C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE

abnormal program termination

...全文
185 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
happyboxman 2008-07-30
  • 打赏
  • 举报
回复
不保证一定行,试试下面的方法:

To resolve this problem, remove the Works in Word Suite Add-in. To do this, follow these steps.

After you remove the Works in Word Suite Add-in, Word may not be available from the Works Task Launcher.

NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
1. Click Start, and then click Control Panel.
2. Double-click Add or Remove Programs.
3. Click Microsoft Works in Word Suite Add-in, and then click Change/Remove.
4. Click OK to confirm the removal.
5. Click Close.
6. Restart your computer.
If this problem occurs but you do not have Microsoft Works installed, click the article number below to view the article in the Microsoft Knowledge Base, and then use the Troubleshoot Utility to determine the origin of the error message.

For additional information about the Troubleshoot Utility, click the following article number to view the article in the Microsoft Knowledge Base:
homesos 2008-07-28
  • 打赏
  • 举报
回复
实现一下VBA中按键时的相应事件,然后再试试看,异常发生的情况。
或许会有眉目
randyup 2008-07-26
  • 打赏
  • 举报
回复
好少用word里的函数~不知道,但接下分
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
接分是王道!
meiZiNick 2008-04-30
  • 打赏
  • 举报
回复
没遇到过这种情况.
美丽大道 2008-01-03
  • 打赏
  • 举报
回复
帮顶接分!! 不太知道 是不是参数问题 !获得代码位置问题?
ydlchina 2007-12-08
  • 打赏
  • 举报
回复
接分
ChinaOBS 2007-12-07
  • 打赏
  • 举报
回复
很抱歉,word我基本上不用。不过,我觉得您应该在word的vba环境中进行调试,查看问题到底出在哪儿。
椅子来了 2007-12-07
  • 打赏
  • 举报
回复
和谐接分


5,172

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧