473,756 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Offic e.Interop.Excel ._Allication
failed. Line: Microsoft.Offic e.Interop.Excel
The error is firing when executing the following line : oXL.Visible= true;

Can anyone help

Ugo


Nov 18 '05 #1
1 1308
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*******@hart co.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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.Offic e.Interop.Excel ._Allication
failed. Line: Microsoft.Offic e.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
4541
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 by MSHTML. I have just implemented some of the necessary custom COM interfaces/gateways to allow me to take control of MSHTML's right-click menu. One of the callbacks that MSHTML makes (and I've implemented) is
0
417
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 perfectly. However, when I made a setup file and installed it on another box, I get: System.InvalidCastException: QueryInterface for interface...Failed. when the console app tires to reference the dll. I can see that the
0
1450
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 out (there are thousands of pages to full text search) I have got several of the following event logs which may be attributed to doing a search which times out EVENT ID 1090 SOURCE: ASP.NET 1.1.4322. Failed to execute request because...
0
1251
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 tries to use the dll (stack trace below). Other features of our app work correctly. We have not been able to repro the issue on our own Win2k test box. Below the stack trace are some notes about things we tried and the results. Any help will be...
0
386
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 Framework 1.1 and MDAC 2.8 SP1. This is what I've done: - I compiled the VB.Net DLL and registered it so it can be used in the VB6 app using "regasm /tlb:VBNETClass.tlb VBNETClass.dll". - From the VB6 app, I added a reference to the VB.Net DLL. - I...
0
1983
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 compatiblity is true). why do i get this error? will changing revision of a COM will generate this error? do i need to compile my program everytime i compiled DocMgr which is a common module. it seems not a good method.
3
2460
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 error is QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed If anyone has any idea how do we use bulkloader in asp.net, then please share.........
6
1198
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 Error when the application attempts to instantiate any of the classes in the COM+ dll. If I remove the application from COM+ and attempt to do the same thing, I get a permission denied. I have windows authentication set to None, and impersonate set...
2
3250
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 would be appreciated. If this isn't the correct group, can someone direct me to the correct one. Error: QueryInterface for interface Excel._Application failed.
0
9455
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.