473,396 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

QueryInterface error

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


Nov 18 '05 #1
1 1290
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


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Sparago | last post by:
I am working with the MSHTML editor control. I used win32com.client.gencache.EnsureModule on the MSHTML type library to generate the necessary IDispatch support for all the various interfaces used...
0
by: Jason | last post by:
I'm writing a small console app in .NET that needs to reference a 3rd party dll. I wrote the app by adding a reference to the 3rd party dll in my project and my code builds and executes...
0
by: matt | last post by:
Hi There we have a new asp.net site that is getting a lot of hits. I have set this up on its own server with its own database server. We have a search system built into the site which is timing...
0
by: lynng_stottlerhenke | last post by:
Hi, Our app uses a 3rd party dll with ActiveX controls that is installed and registered by the setup. We have a customer who has installed on Win2k and is getting this exception when the app...
0
by: adam | last post by:
I am getting an error when trying to use an ADODB.Recordset that was passed from a VB6 application to a VB.Net class library using COM Interop. I am running this on WinXP SP2 using the .Net...
0
by: Mullin Yu | last post by:
hi, i got an error QueryInterface for interface DocMgr._clsDocMgr failed where DocMgr is a COM object written by VB6. I just compiled DocMgr with a changed revision but SAME classid (binary...
3
by: Von Shean | last post by:
I am trying to user Bulk loader component in asp.net. The code runs perfectly fine in a test harness but gives the following error when used in a strong named dll called from asp.net using c#. The...
6
by: Malcolm Klotz | last post by:
Hi, I am developing an ASP.Net application that uses a VB6.0 COM+ dll. When I try to debug the VS.NET application with VB6.0 running (and registered in COM+) I am receiving a QueryInterface...
2
by: Stan | last post by:
Hello All: Don;t know if this is the correct group to post this in but here goes. Getting this error when trying to create excel object using Outlook Web Components on our web server. Any help...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.