By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,786 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,786 IT Pros & Developers. It's quick & easy.

VB.NET error using EXCEL

P: n/a
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.
Jul 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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?

--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"Juan Sanchez" <em**************@yahoo.com> wrote in message
news:03****************************@phx.gbl...
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.

Jul 21 '05 #2

P: n/a
Yes, it was working good but this morning I had installed
the office XP PIAs becouse I need use word too.

-----Original Message-----
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?

--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"Juan Sanchez" <em**************@yahoo.com> wrote in messagenews:03****************************@phx.gbl...
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.

.

Jul 21 '05 #3

P: n/a
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.)
"Juan Sanchez" <em**************@yahoo.com> wrote in message
news:04****************************@phx.gbl...
Yes, it was working good but this morning I had installed
the office XP PIAs becouse I need use word too.

-----Original Message-----
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?

--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"Juan Sanchez" <em**************@yahoo.com> wrote in

message
news:03****************************@phx.gbl...
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.

.

Jul 21 '05 #4

P: n/a
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.

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

"Juan Sanchez" <em**************@yahoo.com> wrote in messagenews:04****************************@phx.gbl...
Yes, it was working good but this morning I had installed the office XP PIAs becouse I need use word too.

>-----Original Message-----
>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?
>
>--
>Dino Chiesa
>Microsoft Developer Division
>d i n o c h @ o n l i n e . m i c r o s o f t . c o m
>
>
>"Juan Sanchez" <em**************@yahoo.com> wrote in

message
>news:03****************************@phx.gbl...
>> 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.
>
>
>.
>

.

Jul 21 '05 #5

P: n/a
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.
"Juan Sanchez" <em**************@yahoo.com> wrote in message
news:2d****************************@phx.gbl...
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.

-----Original Message-----
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.)


"Juan Sanchez" <em**************@yahoo.com> wrote in

message
news:04****************************@phx.gbl...
Yes, it was working good but this morning I had installed the office XP PIAs becouse I need use word too.
>-----Original Message-----
>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?
>
>--
>Dino Chiesa
>Microsoft Developer Division
>d i n o c h @ o n l i n e . m i c r o s o f t . c o m
>
>
>"Juan Sanchez" <em**************@yahoo.com> wrote in
message
>news:03****************************@phx.gbl...
>> 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.
>
>
>.
>

.

Jul 21 '05 #6

P: n/a
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.
"Juan Sanchez" <em**************@yahoo.com> wrote in message
news:2d****************************@phx.gbl...
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.

-----Original Message-----
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.)


"Juan Sanchez" <em**************@yahoo.com> wrote in

message
news:04****************************@phx.gbl...
Yes, it was working good but this morning I had installed the office XP PIAs becouse I need use word too.
>-----Original Message-----
>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?
>
>--
>Dino Chiesa
>Microsoft Developer Division
>d i n o c h @ o n l i n e . m i c r o s o f t . c o m
>
>
>"Juan Sanchez" <em**************@yahoo.com> wrote in
message
>news:03****************************@phx.gbl...
>> 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.
>
>
>.
>

.

Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.