1 Previous Next 

Faq: How to resolve, problems with closing automated Microsoft Office Program


Can I automaticly close an office window?

When you are done automating an office program use Marshal.ReleaseComObject to close the program.

      oExcel.Quit()
        Marshal.ReleaseComObject(oExcel)
        GC.Collect()




1 Previous Next