VB.NET error using EXCEL

J

Juan Sanchez

Hi there,

I have a VB.NET application using EXCEL it run fine in
some computers but now in a specific one I receive the
error QueryInterface for interface Excel._Application
failed. interop.Excel.

Some body can help me ?


Thanks in advance.
 
D

Dino Chiesa [Microsoft]

Excel must be installed on the machine, is it?
and, the excel interop assemblies must be installed.
Also, the version of Excel must match the version of the interop assembly.

Are all these things true?
 
J

Juan Sanchez

Yes, it was working good but this morning I had installed
the office XP PIAs becouse I need use word too.
 
R

Robert Jacobson

Do you have Excel XP installed on all of the client machines? The Office
PIAs are only compatible with Office XP (not Office 2000 or earlier.)
 
J

Juan Sanchez

NO, I don't have XP installed, then I want to roolback the
PIAs installation, I had follow the steps recomended on
documentation but the error continue.
 
R

Robert Jacobson

You just need to remove the references to the PIAs in your project. After
that, add a reference to the COM type libraries for the versions of Excel
and Word that are installed on the client machines.

If the clients are using Excel 2000, for example, you need to reference the
Excel 9.0 type libraries. (Under the Add Reference: COM tab.) You need to
have that version of Excel installed on your development machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top