Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到,当在 word vsto 中调用 Application.Documents.Open 方法时,如果文档可见或不可见,则会设置一个引用。之后,我如何检查文档是否可见?
基本上,我试图通过将可见性设置为 false 来防止在打开某些文档时发生某些事情,以便我可以用 if 语句捕获它。
你试过你的WordDocument.ActiveWindow.Visible 吗?
JSFiddle: http: //jsfiddle.net/ardave/8DR6n/3/ 全屏 JSFiddle:http: //jsfiddle.net/ardave/