简体   繁体   中英

Is there any option hide Saving Dialog box in Microsoft Office interop Excel?

I set code for save excel using Microsoft Office interop Excel but when my excel file Save it's Display saving Dialog box like image. it's security issue because display save path

在此处输入图片说明

Code

excelWorkBook.SaveAs("C:\\MyExcelTestTest.xls", Excel.XlFileFormat.xlWorkbookNormal,
System.Reflection.Missing.Value, System.Reflection.Missing.Value, false, false,
Excel.XlSaveAsAccessMode.xlShared, false, false, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value);

Thanks in advance

This feature is for security, you can use an excel macro to not display the popup

Please check: Excel VBA - hide path while saving file to another location

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