如何禁用保存提示。
class WordDocument
{
Word.Document document;
public WordDocument(string filepath,Word.Application application)
{
document = application.Documents.Open(filepath);
}
public void Save()
{
document.Save();
//need to remove prompt
}
}
答案 0 :(得分:2)
要删除保存窗口的提示,请在保存文档
之前设置application.DisplayAlerts = false