Excel 2007 automation on top of a Windows Server 2008 x64

前端 未结 5 1191
粉色の甜心
粉色の甜心 2020-12-01 01:30

I’m well aware of the Microsoft support base article stating that it’s not supported to automate office products UI less. It seems that Windows Server 2008 x64 and Excel

5条回答
  •  北海茫月
    2020-12-01 02:14

    I've quite often found that calling Quit() isn't enough to release the resources. Try adding: -

    System.Runtime.InteropServices.Marshal.ReleaseComObject(excel);
    

    between the Quit() statement and setting it to null.

提交回复
热议问题