VS 2005 Excel Component OWC11 in Vista

G

gareth

I have an application that has certain forms that use excel spreadsheets. I
have been using AxInterop.OWC11.dll and it was working fine in Windows XP. In
Vista, however there is an exception (Class not registered (Exception from
HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))) that is thrown when the excel
sheets attempt to load. I'm not sure what the difference between
AxInterop.OWC11 and OWC11 or Microsoft.Office.Interop.Owc11 are. When using
VS 2005 in Vista, though, when I try to add OWC11.dll using "Add
Reference..." in the Project Properties... menu I get an error: (A reference
to 'C:\...\OWC11.DLL' could not be added. Please make sure the file is
accessible, and that it is a valid assembly or COM component. Any suggestions
of what DLL I should be using (and where to get it from) and what could
preventing me from adding this reference? Thanks for any help.
 
A

Alvin Bruney [MVP]

Is the component registered on Vista?

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 
G

gareth

Not sure if that component is registered. It seems as though the Interop DLL
is a smaller DLL that works if you have Office installed on the machine,
while OWC11.DLL is bigger and doesn't require Office to be installed on the
machine. As far as the problem adding the OWC11 DLL. The way I had to do it
was just to go through the Toolbox and click "Choose Items..." and then
Browse and find the OWC11 dll and add it from there. That way I had the
components in the toolbox and the reference was added. I've just noticed a
problem with using OWC11 with 64 bit machines though.

Alvin Bruney said:
Is the component registered on Vista?

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

gareth said:
I have an application that has certain forms that use excel spreadsheets. I
have been using AxInterop.OWC11.dll and it was working fine in Windows XP.
In
Vista, however there is an exception (Class not registered (Exception from
HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))) that is thrown when the excel
sheets attempt to load. I'm not sure what the difference between
AxInterop.OWC11 and OWC11 or Microsoft.Office.Interop.Owc11 are. When
using
VS 2005 in Vista, though, when I try to add OWC11.dll using "Add
Reference..." in the Project Properties... menu I get an error: (A
reference
to 'C:\...\OWC11.DLL' could not be added. Please make sure the file is
accessible, and that it is a valid assembly or COM component. Any
suggestions
of what DLL I should be using (and where to get it from) and what could
preventing me from adding this reference? Thanks for any help.
 

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