I am having trouble releasing Excel Interop Com Objects which is causing my c# application to crash when I attempt to save and then close an Excel workbook created via Excel Interop. I feel the issue is that in some cases I am using '2 dots' with excel interop COM objects which from what I've read is not allowed. I have eliminated 2 dots from most lines of code, but I am having troulbe figuring out a way to recreate the following lines of code so that they only use one dot. If anyone has any suggestions I would greatly appreciate it.
workbook = (Excel.Workbook)app.Workbooks.Open(startForm.excelFileLocation,);
workbook = (Excel.Workbook)app.Workbooks.Add(1);
workSheet_range.Font.Color = System.Drawing.Color.FloralWhite.ToArgb();
workSheet_range.Font.Bold = font;
workSheet_range.Interior.Color = System.Drawing.Color.Red.ToArgb();