Save Excel file without asking to overwrite it

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hey,

Im manipulating an Excel (.xls) file trough C#, and Im using this function the save the file in the end of my program:

excelWS.SaveAs(@path, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing);
But after it the windows prompt asking to the user if he would like to overwrite the existing file (because im saving it with the same name as before).

Id like to know if theres a way to always overwrite the file, without asking to the user.<br/>
<br/>
Regards

View the full article
 
Back
Top