There is automation on excel on C #, it gives an error every time you save
Unhandled Exception: System.Runtime.InteropServices.COMException: Document not s aved. at Microsoft.Office.Interop.Excel._Workbook.SaveAs(Object Filename, Object Fi leFormat, Object Password, Object WriteResPassword, Object ReadOnlyRecommended, Object CreateBackup, XlSaveAsAccessMode AccessMode, Object ConflictResolution, O bject AddToMru, Object TextCodepage, Object TextVisualLayout, Object Local) How to save
Workbook.SaveAs(Savefile, Excel.XlFileFormat.xlWorkbookNormal); Workbook.Close(Type.Missing, Type.Missing, Type.Missing); oWord.Workbooks.Close(); oWord.Quit(); It is necessary to do, if it gives an error, then repeat the save until I save it. I read what I can do through error handling or by checking the file, but I don’t know