Why are you trying to make Excel visible? This won't work. Where are you
trying to make it visible, on the server? Nobody will be sitting at the
server normally. If you're trying to open Excel on the client you're taking
the totally wrong approach.
Here's some best practices on the subject of exporting to Excel from
ASP.NET:
http://www.aspnetpro.com/NewsletterA...200309so_l.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Ugo" <ub*******@hartco.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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