Hi,
In our application,user can export some data to an excel file.When he clicks export, we pop-up windows file dialog where he chooses an existing excel file to overwrite,or give a new name.But,when he overwrites an existing file,he is asked by windows "does he want to replace",and if he clicks no,an exception is raised
Exception from HResult: at Microsoft.office.Interop.Excel.Workbook.Saveas
How can we detect this exception? Or,is it possible to detect "no" and handle it?