http://support.microsoft.com/default.aspx?kbid=302084

  • Thread starter Thread starter Ugo
  • Start date Start date
U

Ugo

Hi,
I have just followed the Microsoft Knowledge Base Article - 302084 How
to Automate Microsoft Excel from Microsoft Visual C# .Net
http://support.microsoft.com/default.aspx?kbid=302084
and I keep getting the following error in a message box:

QueryInterface for interface Microsoft.Office.Interop.Excel._Allication
failed. Line: Microsoft.Office.Interop.Excel
The error is firing when executing the following line : oXL.Visible= true;

Can anyone help

Ugo
 
That's an interop error that usually happens when a COM DLL is not
registered, or when the COM object isn't the same as the one that the
interop wrapper is wrapping.

Do you have Microsoft Excel installed, and the right version? I've used
the interop assemblies for both Excel 2000 and XP without too many problems.
 
Back
Top