I am adding a new excel file to a SharePoint Library. The Library requires check-in or check-out. When closing the excel workbook, a dialog pops up in the background asking the user for check-in or not.
Is it possible to prevent the dialog popping up?
Excel.Application oExcel = new Excel.Application();
Excel.Workbook workbook = oExcel.Workbooks.Add();
string xlsxFullName = "https://company.sharepoint.com/sites/collection/list/newfile.xlsx";
workbook.SaveAs(Filename: xlsxFullName, FileFormat: XlFileFormat.xlOpenXMLWorkbook, AddToMru: false );
oExcel.Workbooks.Close();
// Excel asks now for Check-In -> can this be prevented or accepted in program?