Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems using "Excel.Application" in Vista

Status
Not open for further replies.

alonex

Programmer
Jan 10, 2006
14
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top