Save opened Excel file to disk and then write contents to it using ADO.Net C#

Last Reply on Feb 01, 2013 08:56 AM By Mudassar

Posted on Feb 01, 2013 08:55 AM

Hello Sir i want to save the Excel File by coding mns instead of save or (ctrl+s)........actuall i refer one Excel file which update canti without saving so when i fetch the record from excel i get old record not updated so how can i save first excel so can i get updated record from excel file...............Thnx in advance

Posted on Feb 01, 2013 08:56 AM

That's not possible. Since when file is opened it is in memory. Thus you cannot read Memory of some other process