Tag: 办公室 互操作

Word拼写检查弹出隐藏并“冻结”我的应用程序

我在我的内部WinForm应用程序中使用Word的拼写检查。 我的客户端都是带有Office 2007的XP机器,并随机在应用程序后面弹出拼写检查建议框,并使所有内容“显示”冻结,因为您无法获取它。 建议? 其他人怎么做才能解决这个问题或完全停止呢? 谢谢 以下是我的代码,供参考。 public class SpellCheckers { public string CheckSpelling(string text) { Word.Application app = new Word.Application(); object nullobj = Missing.Value; object template = Missing.Value; object newTemplate = Missing.Value; object documentType = Missing.Value; object visible = false; object optional = Missing.Value; object savechanges = false; app.ShowMe(); Word._Document doc = app.Documents.Add(ref template, […]