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 文档执行特定操作时,我需要一种方法来始终显示另存为对话框。目前,该对话框仅在保存未保存的文档时显示。我正在处理的这些文档已经以特定名称保存在一个位置,但用户需要能够更改名称和位置。
弄清楚了。非常简单,以防其他人遇到同样的问题:
var wordDialog = Globals.ThisDocument.ThisApplication.Dialogs[Word.WdWordDialog.wdDialogFileSaveAs]; wordDialog.Show();