Hi,
I'm having problems to get active object of excel application in Vista.
I'm using:
System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application")
And get an exception:
"System.Runtime.InteropServices.COMException (0x800401E3): Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
at System.Runtime.InteropServices.Marshal.GetActiveObject(Guid& rclsid, IntPtr reserved, Object& ppunk)"
I have tried running the application with: Low & Medium Integrity level with no luck.
Any ideas?
Thanks,
Alonex
I'm having problems to get active object of excel application in Vista.
I'm using:
System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application")
And get an exception:
"System.Runtime.InteropServices.COMException (0x800401E3): Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
at System.Runtime.InteropServices.Marshal.GetActiveObject(Guid& rclsid, IntPtr reserved, Object& ppunk)"
I have tried running the application with: Low & Medium Integrity level with no luck.
Any ideas?
Thanks,
Alonex