关闭 Outlook 2007 中的模式窗口
我需要关闭模态检查器(通过 MS Word 或其他应用程序启动)并将其替换为非模态检查器。问题是,一旦检测到模态检查器就调用 close 将导致调用应用程序抛出“操作无法完成”错误。
有人知道如何抑制此错误消息吗?
I need to close Modal Inspectors (launched via MS Word or other app) and replace them with non-modal Inspectors. The problem is, calling close as soon as you detect the modal inspector will cause the calling application to throw a "operation failed to complete" error.
Anyone have ideas on how to suppress this error message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能与您如何“检测”打开的窗口有关。如果您尝试太快关闭它,Outlook 可能会因此而抛出异常。我会尝试检测窗口,然后延迟四分之一秒左右,然后关闭它。让 Outlook 有机会做任何可能需要做的内部管理工作。
it might have to do with how you're "detecting" the opening window. If you try to close it too quickly, outlook may be throwing because of that. i'd try detecting the window, then delaying for a quarter sec or so and then closing it. Let outlook have a chance to do whatever it might need to do for internal housekeeping.