↧
Answer by Heslacher for Tuning Excel calculation engine which uses MS Excel...
At a quick glance, thispublic static bool TryKillProcessByMainWindowHwnd(int hWnd){ uint processId; GetWindowThreadProcessId((IntPtr) hWnd, out processId); if (processId == 0) return false; try {...
View ArticleAnswer by Malachi for Tuning Excel calculation engine which uses MS Excel...
One thing that I saw that didn't look good was, your resource disposal herepublic void Dispose(){ try { var hWnd = _excelApplication.Application.Hwnd; TryKillProcessByMainWindowHwnd(hWnd); } catch...
View ArticleTuning Excel calculation engine which uses MS Excel interop
I am currently building an Excel calculation engine. Its purpose is basically to wrap the calculation logic of an Excel workbook in order to use the logic from a C# library. using (var s = new...
View Article