如何在办公室互开扩时禁用弹出窗口 [英] How to disable popups when openning in office-interop

查看:169
本文介绍了如何在办公室互开扩时禁用弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如只读确认,其他警报。
如何处理这些弹出窗口呢?或忽略他们?

Such as read-only confirm, other alerts. What to do with these popups? Or ignore them?

推荐答案

请参阅我的回答的在这里。

基本上,你通过禁用所有警报显示警报的方法:

Basically, you disable all alerts via the "Display Alerts" method:

Microsoft.Office.Interop.[OFFICE_APP].Application app = new Microsoft.Office.Interop.[OFFICE_APP].Application();
app.DisplayAlerts = false;



其中[OFFICE_APP]是你正在使用的Office程序,如Word,Excel中的名称等等。

where [OFFICE_APP] is the name of the Office program you're using, such as Word, Excel, etc.

这篇关于如何在办公室互开扩时禁用弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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