简体   繁体   中英

Excel Application return “File Save” instead of “Save As” dialog

Why auto dialog = _excelApp.get_FileDialog(Office.MsoFileDialogType.msoFileDialogSaveAs); returns "File Save" dialog?

在此处输入图片说明

How to get "Save As" dialog?

There is no "Save as" dialog in Excel at all. I can see only a "File save" dialog.

Even using the UI in any possible situation I can only see only one "File save" dialog that is used to ask for a name the first time, or ask for a new name.

So using msoFileDialogSaveAs is all you have.

It seems to be a bug in microsoft's dll. I used another interface which works fine:

Excel.Dialog dialog = _excelApp.Dialogs[Excel.XlBuiltInDialog.xlDialogSaveAs];
dialog.Show();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM