In C #, I'm trying to get an instance of an Excel.Application object from a Process object. It seems to be really simple, but I can't figure it out and can't find an example. To repeat, I have a System.Diagnostics.Process object that I know relates to an executable instance of Excel. Now I need to restore the Microsoft.Office.Interop.Excel.Application object, which refers to the process so that I can manipulate the Excel application with C #.
In case this simplifies, I also have an HWND identifier and window text associated with the active Excel window.
Thank.
source
share